Skip to main content
gamedev.net
🔒 Locked

API for changing screen resolution?

Started by Hentai Sep 28, 2002 at 4:18 PM 1 replies 350+ views
Original Post
Hentai
Hentai
Hi! Is there an API for changing screen resolution? I''m to lazy to look in MSDN Library..
eh va? :P
SilentReaper
SilentReaper
Hi. This information may be a little dated and possibly incorrect since it''s been a while since I''ve messed with changing the display settings without using OpenGL/DX to do this for me... That said -- please check all information provided here.

For the default display only use ChangeDisplaySettings(). You can, however, change the settings for any display using ChangeDisplaySetingsEx(). If you use the latter, you''ll need to use EnumDisplayDevices() to get a list of all displays available, then pass in the proper DISPLAY_DEVICE.DeviceName into EnumDisplaySettings (or NULL if you''re only changing the default display). since hard coding refresh rates is a generally a bad thing to do.

Hope this helps.
Hentai
Hentai
Wee! =)

Thanks for the help.. I''m looking in the "Win32 Programmers Reference" now and found some guides and info on it..

cheers!
eh va? :P

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.