Hi.
I'm trying to let the user select which monitor to display my
application in full-screen.
I'd like to be able to display to the user the characteristics of
the display such as resolution, pixel depth, refresh rate, etc.
I can get all the information I need through a GDHandle except the
refresh rate.
How does would I get the refresh rate of a monitor given it's
GDHandle?
it's much easier if you could use the CGDirectDisplay API.
CGDisplayCurrentMode()
then CFDictionaryGetValue() with the key "RefreshRate".
if you really need to go through GDHandle, the field you need is
called csRefreshRate, but you may need to use Fix2Long to convert to
a long... and you would need to do a list iterator proc to iterate
the mode list through DMGetIndexedDisplayModeFromList(), which is
really painful (especially if you want to be 9 and X compatible, like
I did in 10.1.4 days)...
pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden