From c03f197329d39095836e5c3c430a8828ed283c82 Mon Sep 17 00:00:00 2001 From: rkrolib Date: Sat, 14 Feb 2004 03:29:57 +0000 Subject: [PATCH] For some reason, the X "expose" event handler was *directly* calling the display handler in the client. (Okay, it was calling a function that operates on the window handle.) If you have any complexity to the display code, this can be painful to watch. I can't think of a good reason to do the display immediately, so I fixed the code to do a glutPostRedisplay(). git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@461 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index 68c530c..2882ede 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -613,12 +613,13 @@ void FGAPIENTRY glutMainLoopEvent( void ) * XXX double-buffered does not respect viewport when we * XXX do a buffer-swap). * - * XXX GETWINDOW( xexpose ); - * XXX fgSetWindow( window ); - * XXX glutPostRedisplay( ); */ if( event.xexpose.count == 0 ) - fghRedrawWindowByHandle( event.xexpose.window ); + { + GETWINDOW( xexpose ); + fgSetWindow( window ); + glutPostRedisplay( ); + } break; case MapNotify: