OWL NExt - Knowledge Base

[ Home | Contents | Search | Next | Previous | Up ]

How to change video resolution on the fly.

Date: 11/30/99
Time: 1:27:54 AM

Question:


At a certain point in my program I'd like to be able to change
the video resolution, display some stuff, then restore the
screen (including the previous contents). Any ideas how to do
this?

Answer:


Check out the ChangeDisplaySettings and EnumDisplaySettings
functions. These are new Win32 functions. They won't change
palette depth without rebooting but they should allow you to
change screen resolution on the fly.

Alternatively, use DirectDraw in exclusive mode. That will give
you complete control of the screen.

In exclusive mode you can do whatever you want without having
to share the screen with other applications.

Last changed: July 14, 2001