X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_callbacks.c;h=ef404f746a627f777487b6fc65bf319c27b98004;hb=fe89df7de1aa6a732a441e983cce03e1fd6fd81a;hp=b741a0c19a53e0db21c9f2a32f47bd72891b26ce;hpb=ca79181e75fe302c7e7aa508d078cbac0ac6a514;p=freeglut diff --git a/src/freeglut_callbacks.c b/src/freeglut_callbacks.c index b741a0c..ef404f7 100644 --- a/src/freeglut_callbacks.c +++ b/src/freeglut_callbacks.c @@ -49,6 +49,12 @@ void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) ) { SET_CALLBACK( Display ); + + /* + * Force a redisplay with the new callback + */ + fgStructure.Window->State.Redisplay = TRUE; + } /*