PDA

Click to See Complete Forum and Search --> : How: Change refresh rate (Hz) and revert screen Resolution/Hz/Bpp once closed


JelloBones
May 29th, 2001, 11:50 PM
I have two questions that I hope someone can answer... The first and foremost is:

How do I change refresh rate settings? I know how to change screen resolution and color depth, but that is it.

The second important question, is how do all these game programmers make their game automatically revert to the screen resolution/refresh/color depth prior to when the game was run.

For example, I am using 1024x768x32 @ 75hz. Then I run the game... It changes the settings to 800x600x16 @ 60hz.. But then I CTRL+ALT+DEL or ALt+F4 out of it.. Is there any way I can have my program "sense" that it is being closed so I can change the resolution and stuff back to normal?

Thanks for any information, guesses or help in general.

Sastraxi
May 30th, 2001, 03:19 PM
If you are using DDraw, it has a function (either that or it's built-in) that reverts it on exit just use that in form_unload.