PDA

View Full Version : OpenGL fullscreen refresh rate



restless
08-14-2002, 12:13 AM
OK, right to the topic - does anybody know how can I set not only screen resolution fo full-screen, but refresh rate too?

Say, I want 800x600x85Hz but that stoopid http://www.opengl.org/discussion_boards/ubb/smile.gif GeForce does it at 800x600x60Hz. But I know it can do 800x600x85Hz so I want it http://www.opengl.org/discussion_boards/ubb/smile.gif.

I need help http://www.opengl.org/discussion_boards/ubb/smile.gif

kehziah
08-14-2002, 01:44 AM
Switching from a screen resolution to another is not part of the OpenGL API. You have to use OS-dependent calls to do it. Win32 provides the ChangeDisplaySettings function, which has a field for refresh rate (IIRC). Look in the MSDN for more info.

kehziah
08-14-2002, 01:57 AM
Ok, I got bored, so I took a look at the MSDN for you.
The relevant field is dmDisplayFrequency in the DEVMODE structure you pass to the ChangeDisplaySettings function.

restless
08-14-2002, 02:03 AM
TA for answer, I found it 5 minutes before http://www.opengl.org/discussion_boards/ubb/smile.gif

Thanks anyway.