home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: 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
-
-
- 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)
-