summaryrefslogtreecommitdiff
path: root/test/cube.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-31 17:49:31 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-31 17:49:31 +0200
commitef86d9acedc8d8a5005cdae45070cfc5f5789964 (patch)
tree286c703fcdac4dfc40196c2877d484a1475509f4 /test/cube.cxx
parente5310144b7b3bda62e3711420c53af73907ab2d4 (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.cxx4
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();