ChangeDisplaySettingsEx returns DISP_CHANGE_SUCCESSFUL during the
CDS_TEST pass, but then the call to EnumDisplaySettings returns the
current resolution, not the one that was tested; next pass with
CDS_FULLSCREEN sets this current resolution... How should I deal with this?
When I try on the notebook which has 1280x800 by default, it doesn't
even work, giving me
"freeglut (Cube_newLib.exe): The graphics mode is not supported.
Cannot enter 0012FECC fullscreen mode"
GLUT works fine in both cases though.
By the way, I tried to reply directly to your email address, but I got
an error with server rejecting FROM addres.
Fay John F Dr CTR USAF 46 SK wrote:
> I'm not sure what is happening with your specific application.
> If you have an IDE (such as MSVC) you can link to the debug version of
> "freeglut" and step into the functions to see what is going on. The
> code for "glutGameModeString" is in "freeglut_gamemode.c" starting
> around line 381 and the "glutEnterGameMode" function is the next
> function in the same file. A brief look at the code does not reveal
> anything obvious in Windows, although there are some comments about
> needing some XFree86 extensions for it to work in X.
> Please let me know what you find or if you don't find anything.
> I can take a quick look at it if you come up empty but my day job is
> keeping me quite busy at the moment.
> John F. Fay
> Technical Fellow
> Jacobs Technology TEAS Group
> -----Original Message-----
> From: freeglut-bugs-bounces@...
> [mailto:freeglut-bugs-bounces@...] On Behalf Of Prune
> Sent: Sunday, June 17, 2007 4:07 PM
> To: freeglut-bugs@...
> Subject: [Freeglut-bugs] glutEnterGameMode does not change resolution
> inWindows XP
> Using glut, resolution is changed. Using freeglut, it's not, although
> call doesn't fail. What's going on here? This is the case with any
> resolution the system accepts, so the same thing with say 640x480.
> Someone had posted a while ago (see link below) they had the same
> under X, and was told it's due to the window manager. Well, I'm using
> Windows XP, with the same problem, thus it has nothing to do with that.
> how do I get this to work? It is important for my project that I am
> able to
> change the resolution.