Position the distance message closer to the middle of the window, it
has been far, far off to the upper right. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@782 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
1e30ebb6a1
commit
15aa199c84
@ -268,7 +268,7 @@ void display_cb ( void )
|
||||
/* Print the distance between the two points */
|
||||
glColor3d ( 1.0, 1.0, 1.0 ) ; /* White */
|
||||
sprintf ( string, "Distance: %10.6f", distance ) ;
|
||||
glRasterPos2i ( 10, 10 ) ;
|
||||
glRasterPos2i ( 1, 1 ) ;
|
||||
glutBitmapString ( GLUT_BITMAP_HELVETICA_12, (unsigned char*)string ) ;
|
||||
|
||||
glutSwapBuffers();
|
||||
|
Reference in New Issue
Block a user