Sign in to follow this  

getting the monitors refresh rate

This topic is 1906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any way to get the monitor's refresh rate in hz using SDL? I assumed it would be in SDL_GetVideoInfo() but it's unfortunately I was wrong. I'm using SDL 1.2.

Thanks in advance.

Share this post


Link to post
Share on other sites
I'm not sure about 1.2 but in version 1.3 you can call:
[source lang="cpp"]SDL_DisplayMode mode;
SDL_GetDisplayMode(mode_index, &mode);
[/source]
Which will give you the SDL_DisplayMode struct containing format, width, height, refresh rate.

Share this post


Link to post
Share on other sites
Sign in to follow this