From ef86d9acedc8d8a5005cdae45070cfc5f5789964 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 31 Aug 2021 17:49:31 +0200 Subject: 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 --- test/cube.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cube.cxx') 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(); -- cgit v1.2.3