🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #592

Re: WinApps detecting 24-bit Video Drivers

#592
From: Chris GUZAK
Date: Tue, 06 Nov 1990 18:18
17 lines
1100 bytes
In article <599@nih-csl.nih.gov> bert@helix.nih.gov (Bert Tyler) writes:
>How should a WinApp check for the presence of a 24-bit (IE, > 256 colors)
>video driver?

24 bit and 16 bit displays will return -1 for NUMCOLORS (since
GetDeviceCaps() only returns 16 bits.  You can also check
NUMPLANES * BITSPIXEL > 8 also indicates a > 256 color device.

Palettes will be mapped to nearest colors on these devices so
you will get what you expect.

People should be careful with the returns from NUMPLANES and
BITSPIXEL.  Improper use of these parameters are almost always
the cause of regular windows programs not running on 24 bit
displays.

Chris Guzak
Technical Details
Message-ID: <58843@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!microsoft!chrisg
References: <599@nih-csl.nih.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!microsoft!chrisg
From: chrisg@microsoft.UUCP (Chris GUZAK)
Newsgroups: comp.windows.ms.programmer
Subject: Re: WinApps detecting 24-bit Video Drivers
Message-ID: <58843@microsoft.UUCP>
Date: 6 Nov 90 18:18:59 GMT
References: <599@nih-csl.nih.gov>
Reply-To: chrisg@microsoft.UUCP (Chris GUZAK)
Organization: Microsoft Corp., Redmond WA
Lines: 17