Mail Archives: djgpp/1997/04/17/09:17:34
Alessandro Moure wrote:
>
> Does anybody knows how to customize the colors when in graphic mode
> #21?
>
> Alessandro Moure.
> moure AT sercomtel DOT com DOT br
There is no palette or anything of that sort in "true" colour modes. You
just write your pixel consisting of 15 bits (16 actually but the MSB has
no effect) to the screen memory. These 15 bits would be tipicaly build
up in the folowing format 5:5:5 RGB. But check your VESA ModeInfo field
to be sure ( there are some weird implementations around). 655536 and
16.7M colour mode work the same. 32bit modes have 0:8:8:8 meaning blank
byte, Red byte, etc...
greetinx and happy coding,
Peter Zijlstra
- Raw text -