diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:49:31 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:49:31 +0200 |
| commit | ef86d9acedc8d8a5005cdae45070cfc5f5789964 (patch) | |
| tree | 286c703fcdac4dfc40196c2877d484a1475509f4 /test/cube.cxx | |
| parent | e5310144b7b3bda62e3711420c53af73907ab2d4 (diff) | |
Fix more MSVC warnings in test apps (#109)
- test/checkers.cxx
- test/cube.cxx
- test/offscreen.cxx
- test/unittest_simple_terminal.cxx
- test/utf8.cxx
Diffstat (limited to 'test/cube.cxx')
| -rw-r--r-- | test/cube.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index c067d49ea..733af20da 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -100,14 +100,14 @@ void cube_box::draw() { glEnable(GL_DEPTH_TEST); glFrustum(-1,1,-1,1,2,10000); glTranslatef(0,0,-10); - glClearColor(0.4, 0.4, 0.4, 0); + glClearColor(0.4f, 0.4f, 0.4f, 0); } glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(float(lasttime*1.6),0,0,1); glRotatef(float(lasttime*4.2),1,0,0); glRotatef(float(lasttime*2.3),0,1,0); - glTranslatef(-1.0, 1.2f, -1.5); + glTranslatef(-1.0f, 1.2f, -1.5f); glScalef(float(size),float(size),float(size)); drawcube(wire); glPopMatrix(); |
