🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1880

Re: Overriding system colors (Using 256 distinct colors)

#1880
From: Peter Nielsen
Date: Thu, 12 Nov 1992 21:05
19 lines
1119 bytes
OK! My problems with the (XGA) palette manager was caused by OS/2.

CSD (6055) fixes the problem! 

Thus the following code _is_ correct (LCOL_OVERRIDE_DEFAULT_COLORS must be
used, if you want all colors to appear correctly!)

 	hpal = GpiCreatePalette (hab, LCOL_OVERRIDE_DEFAULT_COLORS, 
 	                         LCOLF_CONSECRGB, 256L, (PULONG)palettePtr);
 	GpiSelectPalette (hpsMemory, hpal);
 	WinRealizePalette (hwnd, hpsMemory, &numcol);


Peter Nielsen
---
pnielsen@finabo.abo.fi		(VAX)
pnielsen@aton.abo.fi		(UNIX)
pnielsen@ygdrasil.vtyh.fi	(NeXT)
Technical Details
Message-ID: <1992Nov12.210542.11407@abo.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!aton.abo.fi!usenet
References: <1992Nov8.195236.1537@abo.fi>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!aton.abo.fi!usenet
From: PNIELSEN@finabo.abo.fi (Peter Nielsen)
Subject: Re: Overriding system colors (Using 256 distinct colors)
In-Reply-To: PNIELSEN@finabo.abo.fi's message of Sun, 8 Nov 1992 19:52:36 GMT
Message-ID: <1992Nov12.210542.11407@abo.fi>
Sender: usenet@abo.fi (Usenet NEWS)
Organization: Abo Akademi University, Finland
References:  <1992Nov8.195236.1537@abo.fi>
Date: Thu, 12 Nov 1992 21:05:42 GMT
X-News-Reader: VMS NEWS 1.23
Lines: 19