diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-05-20 00:01:06 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2007-05-20 00:01:06 +0000 |
| commit | 73d01dd659f82f2c53fd7cedcf0bbb8d47f70ab2 (patch) | |
| tree | 946d3744f22b87faf22f32cac8eed8619e53be55 /test/gl_overlay.cxx | |
| parent | 9ca173a7020ca6a7daab001b71dfc6e84f149429 (diff) | |
Fix all compiler warnings from various build systems.
Fix vsnprintf() implementation to properly handle long and long long ints.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/gl_overlay.cxx')
| -rw-r--r-- | test/gl_overlay.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/gl_overlay.cxx b/test/gl_overlay.cxx index d6584b01c..c877ecbc1 100644 --- a/test/gl_overlay.cxx +++ b/test/gl_overlay.cxx @@ -72,9 +72,9 @@ void shape_window::draw() { glClear(GL_COLOR_BUFFER_BIT); // for (int j=1; j<=1000; j++) { glBegin(GL_POLYGON); - for (int i=0; i<sides; i++) { - double ang = i*2*M_PI/sides; - glColor3f(float(i)/sides,float(i)/sides,float(i)/sides); + for (int j=0; j<sides; j++) { + double ang = j*2*M_PI/sides; + glColor3f(float(j)/sides,float(j)/sides,float(j)/sides); glVertex3f(cos(ang),sin(ang),0); } glEnd(); @@ -92,8 +92,8 @@ void shape_window::draw_overlay() { // draw an amazing graphic: gl_color(FL_RED); glBegin(GL_LINE_LOOP); - for (int i=0; i<overlay_sides; i++) { - double ang = i*2*M_PI/overlay_sides; + for (int j=0; j<overlay_sides; j++) { + double ang = j*2*M_PI/overlay_sides; glVertex3f(cos(ang),sin(ang),0); } glEnd(); |
