Advertisement

Colour Depth Changes

Started by February 22, 2001 06:40 PM
0 comments, last by Pho 23 years, 9 months ago
Greetings to all fellow OpenGL developers. I have a programming problem (obviously, otherwise I wouldn’t be writing this) that concerns colour depth changes under Win95. In order to change display setting, such as resolution and colour depth, NeHe code uses ChangeDisplaySettings function call. And while it works marvellously for resolution changes, it also requires system restart for colour depth changes (always gives me DISP_CHANGE_RESTART return value). A fellow windows developer told me that my problem could be Windows95 OS that I am using for developing. Apparently, he thinks that other Windows systems (98, Me, 2000) do not have this restraint and that they allow developers to change colour depth dynamically without restart. So, is this true? Could you PLEASE give me some feedback about your experiences with colour depth changes? A simple yes or no with your Windows OS version and graphics card would be more then sufficient. The thing that really bugs me is that I can actually change the colour depth without restarting the system, if I do it manually (by going to Display Properties > Settings). I get this warning dialog box about “Compatibility Warning” but everything proceedes smoothly. So, if it can be done manually, why can’t I change it through my OpenGL project? Is there some other method for colour depth changes, other than ChangeDisplaySettings, that could force the system to change colour depth without restarting? I thank you all for reading this. And excuse my English, I am working on it. Pho
I can not change colour depth with ChangeDisplaySettings on win95 but I do not think it is possible with other versions of windows.

This topic is closed to new replies.

Advertisement