View Full Version : OpenGL fullscreen refresh rate

08-14-2002, 01: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

08-14-2002, 02: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.

08-14-2002, 02: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.

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

Thanks anyway.