Mail Archives: djgpp/1998/09/13/18:46:36
From: | Kilian DOT M AT t-online DOT de (Martin Kilian)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Problem using outp to set the palette
|
Date: | 11 Sep 1998 14:40:33 GMT
|
Lines: | 16
|
Message-ID: | <6tbcp1$1d0$1@news01.btx.dtag.de>
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I try to set the palette in mode 13h with the following code
...
char *pal;
...
outportb(0x3C8, 0);
for (i = 0; i < 256; i++) {
outportb(0x3C9, *pal++ );
outportb(0x2C9, *pal++ );
outportb(0x3C9, *pal++ );
}
Palette entries are already shifted right by 2 but
the colors are wrong. The program works fine if ported
to Borlands (TC 3.0) 16bit compiler.
- Raw text -