mode window, not TRUE/FALSE, we should better follow that. Note that
most man pages claim that this function returns void, but this is
definitely wrong.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@623
7f0cb862-5218-0410-a997-
914c9d46530a
will happen and consequently no reshape callback will ever be called via
the normal mechanism. To fix this, note that the game mode window needs
to be resized and handle this before redraw.
+
+(268) The original glutEnterGameMode() returns the window id of the game
+mode window, not TRUE/FALSE, we should better follow that. Note that most
+man pages claim that this function returns void, but this is definitely
+wrong.
if( ! fghChangeDisplayMode( GL_FALSE ) )
{
fgWarning( "failed to change screen settings" );
- return FALSE;
+ return 0;
}
fgStructure.GameMode = fgCreateWindow(
#endif
- return TRUE;
+ return fgStructure.GameMode->ID;
}
/*