Mail Archives: djgpp/1997/09/20/08:16:29
Seby Carta writes:
>How i have to use the setpalette function provided by Vesa 2.0 protected
>mode interface ? what parameters i have to provide to this function ?
A mode flag in %ebx (0 to set the palette instantly, 0x80 to wait for a
retrace first), a counter of how many colors you want to set in %ecx,
the index of the first color you want to set in %edx, and a pointer to
the palette data (four bytes per color, ordered blue, green, red, pad)
in %edi. The selector for accessing the palette data should be in %es
(this will already be the case if it lives in your normal djgpp data
segment), and the IO selector required by the VESA driver should be in
%ds.
See the Allegro vesa.c file for a working example...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -