From: Diederick Niehorster Date: Tue, 20 Nov 2012 08:57:18 +0000 (+0000) Subject: small enhancement to Callbackmaker demo X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=775071fb9c0eee0bf4b5b13a38a12176518da055;p=freeglut small enhancement to Callbackmaker demo git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1459 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/progs/demos/CallbackMaker/CallbackMaker.c b/progs/demos/CallbackMaker/CallbackMaker.c index 2d31062..9c0d58b 100644 --- a/progs/demos/CallbackMaker/CallbackMaker.c +++ b/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 () ; }