home *** CD-ROM | disk | FTP | other *** search
- Path: ifi.uio.no!larshau
- From: larshau@ifi.uio.no (Lars Haugseth)
- Newsgroups: comp.sys.amiga.programmer
- Subject: LoadRGB4 problem.
- Date: 24 Jan 1996 17:57:05 +0100
- Organization: Dept. of Informatics, University of Oslo, Norway
- Message-ID: <4e5od1$570@gyda.ifi.uio.no>
- NNTP-Posting-Host: gyda.ifi.uio.no
-
-
-
- The following code was reported to crash on Kickstart 2.04, but since
- I only have 3.0 I can't test it myself. Any comments?
-
- ----------
-
- static ULONG palette32chr[] = {
- 16<<16+0,
- RGB32(0x000000), RGB32(0xffffff), RGB32(0xc7c7c7), RGB32(0xff9200),
- RGB32(0xff0000), RGB32(0x00cd00), RGB32(0x0000fe), RGB32(0xc86400),
- RGB32(0x8a8a8a), RGB32(0xe0e0e0), RGB32(0xa500ff), RGB32(0xfffd00),
- RGB32(0xff00bc), RGB32(0x00ff00), RGB32(0x00c8ff), RGB32(0xffcc80),
- 0
- };
-
- static UWORD palette4[] = {
- 0x000, 0xfff, 0xccc, 0xf90,
- 0xf00, 0x0d0, 0x00f, 0xd60,
- 0x999, 0xeee, 0xa0f, 0xff0,
- 0xf0c, 0x0f0, 0x0df, 0xfd8
- };
-
-
- if(v39)
- LoadRGB32(&amiscr->ViewPort, palette32); /* WORKS */
- else
- LoadRGB4(&amiscr->ViewPort, palette4, 16); /* CRASH! */
-
- ----------
-
- --
- Lars Haugseth <larshau@ifi.uio.no>
-
-