delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/25/08:23:43

Message-Id: <199804251222.OAA10543@legolas.mdh.se>
Comments: Authenticated sender is <dal97mlm AT mds DOT mdh DOT se>
From: "=?ISO-8859-1?Q?Magnus_Lindstr=F6m?=" <dal97mlm AT mds DOT mdh DOT se>
Organization: Gamla drakar
To: djgpp AT delorie DOT com
Date: Sat, 25 Apr 1998 14:20:49 +0100
MIME-Version: 1.0
Subject: vesa palette
In-reply-to: <3541B1E9.757E6864@LSTM.Ruhr-UNI-Bochum.De>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019