Message-ID: <33561638.69A7@mcs.nl> Date: Thu, 17 Apr 1997 14:23:20 +0200 From: Peter Zijlstra Reply-To: peter AT mcs DOT nl Organization: Zembla MIME-Version: 1.0 To: Alessandro Moure CC: DJGPP mailing list Subject: Re: 32768 colors mode. References: <33550B93 DOT 7A6 AT pop DOT sercomtel DOT com DOT br> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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