delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/17/09:17:34

Message-ID: <33561638.69A7@mcs.nl>
Date: Thu, 17 Apr 1997 14:23:20 +0200
From: Peter Zijlstra <peter AT mcs DOT nl>
Reply-To: peter AT mcs DOT nl
Organization: Zembla
MIME-Version: 1.0
To: Alessandro Moure <moure AT sercomtel DOT com DOT br>
CC: DJGPP mailing list <djgpp AT delorie DOT com>
Subject: Re: 32768 colors mode.
References: <33550B93 DOT 7A6 AT pop DOT sercomtel DOT com DOT br>

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 -


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