[...wearing latex gloves]
I admit I didn't read the list too much lately, and I don't know how the
gamemode debate ended but...
Just updated freeglut today to discover that now glutEnterGameMode just
fails without xfree extensions. It's the final decision? I quite recall
the original GLUT not failing here, but I didn't re-check.
Anyway.. I needed it, and I've just added the support back along with
some fixes for the /infamous/ "gamemode in a window" (tested on
irix). In the attached patch:
* Fixed the include path in src/Makefile.am to support off-tree builds.
* glutEnterGameMode just succeeds where XFree extensions are not
supported (creating a fixed-sized window)
* Removed the useless XMoveWindow which I think is required by the
subsequent XWarpPointer call. Now XWarpPointer uses the window
handle after grabbing the focus, which correctly repositions the
pointer in both cases without moving the window twice and lets the
window manager decide a decent position.
* Instead of using SCREEN_WIDTH/HEIGHT directly I added a support
function to get the virtual screen extent. This forces the menus
inside the window when "gamemode in a window" is enabled. Harmless on
real gamemode, and fall-backs to the screen resolution for normal
I don't have an xfree box right now, but I'd like really much to set
GLUT_NO_FULLSCREEN to disable the screen-mode switch and use "windowed
'(wave++ "Yuri D'Elia" "http://www.yuv.info/~wavexx/";)
Get latest updates about Open Source Projects, Conferences and News.