You are right, window sizes are in a bit of confusion at the moment.
I think it would be best for your application to go ahead and check for game
mode before subtracting off the border sizes, and also setting the
"IsGameMode" flag (and unsetting it) where it should be set (and unset).
That strikes me as the Right Thing To Do.
Unfortunately I have been pulled off the project on which I was supporting
"freeglut." I will try to keep things from stagnating completely but I
can't devote a lot of time any more. I am still trying to come up with a
self-consistent window size/position algorithm (across multiple platforms)
that doesn't make too many changes from GLUT; this is not trivial because
GLUT is not self-consistent.
John F. Fay
From: Eero Pajarre [mailto:epajarre@...]
Sent: Tuesday, April 15, 2003 9:10 AM
Subject: [Freeglut-developer] freeglut windows size on WIN32 gamemode
There seems to be a problem with getting GLUT_WINDOW_WIDTH
and related values when using gamemode on (MS) windows.
(Testing on windows XP)
I am trying the "current" version from the freeglut site,
and the code in freeglut_state.c around line 386 seems to
adjust the windows size for borders in any case. (and as
gamemode is a fullscreen mode, this causes too small window
Maybe the window state value "IsGameMode" could be used
here, except that the value of IsGameMode is never set (?)
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
Freeglut-developer mailing list