Advertisement

OT - EnumDisplaySettings to get display resolutions

Started by December 22, 2001 10:41 AM
3 comments, last by Nyko 23 years, 2 months ago
I have written a couple of functions to retrieve the available display modes and display them in a dialog box for selection. I''ve also added a filter to filter out extra and unwanted modes, but when when not filtered I get 230 modes with several of them the same resolution. For example, I get eight ''640x480x16'' modes and most of the ''devMode.dmDeviceName'' values returned are ''NV_DISP''. Since I''m just using the width, height, and bits depth values to get the resolution, I don''t see how this will effect my programs, but I''m just curious if anyone knows how to get more information on these modes. Does anyone by chance know why there are eight ''640x480x16'' modes? Does it have to do with pixel format or what? Thanks in advance. Take care, Nyko
It''s the refresh rate that the monitor will display for each resolution
Advertisement
just a guess but it could be the different modes of color format.
like 4R4G4B4A, 5R6G5B, 5R5G5B1A, and so on... but like i said its just a guess.
No, It''s definatley the refresh rates!
Yep that it, Shag. I should of thought about that.
BTW, do you know if the resolutions returned are all the available modes of the graphics card or both the graphics card and the monitor?

Thanks,

Nyko

This topic is closed to new replies.

Advertisement