diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:18:18 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-08-31 17:18:18 +0200 |
| commit | e5310144b7b3bda62e3711420c53af73907ab2d4 (patch) | |
| tree | 949be534c5a4f54efb323cb94edc6aaf79edc1bd /test/fullscreen.cxx | |
| parent | 2b29e921db8800b015fe9f9d664e506c3e02b0e5 (diff) | |
Fix MSVC 'GLfloat' warnings in test apps (#109)
Diffstat (limited to 'test/fullscreen.cxx')
| -rw-r--r-- | test/fullscreen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index fab06c3e1..8bde3cf5f 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -85,11 +85,11 @@ void shape_window::draw() { glViewport(0,0,pixel_w(),pixel_h()); } glClear(GL_COLOR_BUFFER_BIT); - glColor3f(.5,.6,.7); + glColor3f(.5f, .6f, .7f); glBegin(GL_POLYGON); for (int j = 0; j < sides; j ++) { double ang = j*2*M_PI/sides; - glVertex3f(cos(ang),sin(ang),0); + glVertex3f((GLfloat)cos(ang), (GLfloat)sin(ang), 0); } glEnd(); } |
