Mail Archives: djgpp/1998/04/25/08:23:43
I've been trying to config my own palette for a while now but nothing
seems to work.. I'm using 640x480x256
It looks like this..
typedef struct {
char alignment;
char r;
char g;
char b;
} RGB;
typedef RGB Palette[256];
I put my values in and calls function 09h to set the palette with the
addres to my struct in ES:DI
in.x.ax = 0x4F09;
in.x.bx = 0x00;
in.x.cx = 256;
in.x.dx = 0;
in.x.di = FP_OFF( Palette );
segs.es = FP_SEG( Palette );
int86x( 0x10, &in, &out, &segs );
every setting is ok acording to my docs.. but failure.. when i try to
read the palette i'm not even close to the values i put in there..
I've also tryed this...
outp (0x03C8,color);
outp (0x03C9,r);
outp (0x03C9,g);
outp (0x03C9,b);
I would be gratefull for any help...
_______________________________________
E-mail-> dal97mlm AT mds DOT mdh DOT se
WWW-> mds.mdh.se/~dal97mlm/
ICQ UIN -> 3959951
_______________________________________
- Raw text -