How to change the desktop color depth without going fullscreen?

I hope this will be a simple one :slight_smile: . I have some code that runs fine on most video cards, however if the card is low on memory (say 8meg) it will only run when the desktop is set to a 16-bit color depth, 32-bit will cause a crash. I am running in a windowed mode, and what I would like to do is simple force the desktop to always be in 16-bit mode. I can’t go to fullscreen, and I can’t do strictly software rendering because it’s too slow. Does anyone out there have a snip is code they can give me accomplish this?



Use ChangeDisplaySettings or ChangeDisplaySettingsEx
There are many tutorials that use these functions liek at nehe

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.