diff --git a/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c b/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c index 2d31062..9c0d58b 100644 --- a/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c +++ b/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c @@ -65,7 +65,7 @@ Display(void) glPushMatrix (); glLoadIdentity (); glColor3ub ( 0, 0, 0 ); - glRasterPos2i ( 10, glutGet ( GLUT_WINDOW_HEIGHT ) - 10 ); + glRasterPos2i ( 10, glutGet ( GLUT_WINDOW_HEIGHT ) - 20 ); /* 10pt margin above 10pt letters */ if ( reshape_called ) { @@ -171,6 +171,7 @@ Reshape(int width, int height) reshape_width = width ; reshape_height = height ; reshape_seq = sequence_number ; + glViewport(0,0,width,height); glutPostRedisplay () ; }