Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Changing bit depth in c++

Author
Message
Larry
15
Years of Service
User Offline
Joined: 25th Apr 2009
Location:
Posted: 25th Apr 2009 17:46
How do I change the bit depth in C++. I get invalid bit depth specified when I try to debug the first tutorial of mr bamber

thank you

Larry
WH8
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 27th Apr 2009 05:53
Use dbSetDisplayMode(). Below is an example:



The first number is the width in pixels. The second is the height in pixels. The third is the pixel depth. Make sure this number is either a 16 or a 32. 16 means 16-bit colour. 32 means 32-bit colour.
Larry
15
Years of Service
User Offline
Joined: 25th Apr 2009
Location:
Posted: 27th Apr 2009 19:22
Thank you WH8 Problem solved
WH8
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 28th Apr 2009 02:10
You're welcome!

Login to post a reply

Server time is: 2024-11-18 17:16:04
Your offset time is: 2024-11-18 17:16:04