Skip to content

Commit 77eff09

Browse files
committed
progress bar layout fixed
1 parent 983d2b4 commit 77eff09

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

main.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,17 @@ void display(void)
197197
{
198198
glColor3f(128/255.0,222/255.0,234/255.0);
199199
glBegin(GL_POLYGON);
200-
glVertex3f(-250,-200.0,-200.0);
201200
glVertex3f(-250,-190.0,-200.0);
202-
glVertex3f(-250+(int)timepercent,-190.0,-200.0);
203-
glVertex3f(-250+(int)timepercent,-200.0,-200);
201+
glVertex3f(-250,-180.0,-200.0);
202+
glVertex3f(-250+(int)timepercent,-180.0,-200.0);
203+
glVertex3f(-250+(int)timepercent,-190.0,-200);
204204
glEnd();
205+
glColor3f(1,1,244/255.0);
205206
glBegin(GL_LINE_LOOP);
206-
glVertex3f(-252,-202.0,-200.0);
207-
glVertex3f(-252,-188.0,-200.0);
208-
glVertex3f(-252+500,-188.0,-200.0);
209-
glVertex3f(-252+500,-202.0,-200);
207+
glVertex3f(-250,-192.0,-200.0);
208+
glVertex3f(-250,-178.0,-200.0);
209+
glVertex3f(-250+500,-178.0,-200.0);
210+
glVertex3f(-250+500,-192.0,-200);
210211
glEnd();
211212
instructText((char*)cstr,-250,-175,-200);
212213
nav();

0 commit comments

Comments
 (0)