Jump to content

  • Log In with Google      Sign In   
  • Create Account


getting the monitors refresh rate


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 ic0de   Members   -  Reputation: 804

Like
0Likes
Like

Posted 26 October 2012 - 03:38 PM

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.

you know you program too much when you start ending sentences with semicolons;


Sponsor:

#2 joew   Crossbones+   -  Reputation: 3611

Like
0Likes
Like

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS