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.
1 reply to this topic
Ad:
#2 Crossbones+ - Reputation: 2416
Posted 29 October 2012 - 06:05 AM
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.
[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.






