diff options
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 a37883d6d..e4a70d1bf 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -91,8 +91,8 @@ void shape_window::draw() { glClear(GL_COLOR_BUFFER_BIT); glColor3f(.5,.6,.7); glBegin(GL_POLYGON); - for (int i=0; i<sides; i++) { - double ang = i*2*M_PI/sides; + for (int j = 0; j < sides; j ++) { + double ang = j*2*M_PI/sides; glVertex3f(cos(ang),sin(ang),0); } glEnd(); |
