Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to execute an application in custom screen resolution?

Status
Not open for further replies.

imagenetics

Programmer
Dec 8, 2003
66
PL
This is an example of what I need to do but I don't know how:
I have an application, e.g. a Macromedia Flash Projector which runs in fullscreen mode. I need to execute it in 1024x768 resolution if user's machine supports this display mode and current resolution is different. Otherwise the Projector is launched "as is" without changing the display mode.
How to write a "launcher" application which will check current display settings, if they differ from 1024x768 program checks if this resolution is supported. If it is, resolution is switched (just the resolution, bitdepth stays intact) and Projector executes. If it isn't, Projector is executed without changing the display.
If the Projector is closed, launcher switches back the resolution (if it was changed, ofcourse) to previous settings and exits.
 
Find a sample for initializing full-screen OpenGL application. All the steps you need to perform are in there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top