small enhancement to Callbackmaker demo
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1459 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
26a07b9ef3
commit
507338a816
@ -65,7 +65,7 @@ Display(void)
|
|||||||
glPushMatrix ();
|
glPushMatrix ();
|
||||||
glLoadIdentity ();
|
glLoadIdentity ();
|
||||||
glColor3ub ( 0, 0, 0 );
|
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 )
|
if ( reshape_called )
|
||||||
{
|
{
|
||||||
@ -171,6 +171,7 @@ Reshape(int width, int height)
|
|||||||
reshape_width = width ;
|
reshape_width = width ;
|
||||||
reshape_height = height ;
|
reshape_height = height ;
|
||||||
reshape_seq = sequence_number ;
|
reshape_seq = sequence_number ;
|
||||||
|
glViewport(0,0,width,height);
|
||||||
glutPostRedisplay () ;
|
glutPostRedisplay () ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user