delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/27/19:46:37

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: textout() colors
Date: Tue, 24 Mar 1998 19:10:37 +0000
Organization: None
Message-ID: <FFASlHAtUAG1Ewcw@talula.demon.co.uk>
References: <3517156C DOT 3FBA6B83 AT geocities DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dan Chak writes:
>If I am using 32 bit color depth, but it seems like the number of colors
>available to textout() is limited.  Is this so?  

No: what makes you think this?

>How can I use *any* color with textout(), 

Just pass whatever value you want as the color parameter. This is a 32
bit integer, so it has room to encode any color depth format from 8
right up to 32 bits.

>and how can I be sure what each number will represent 

Use the makecol() function. See the ex29 example program for a practical
demonstration.

>(because I wasn't aware that some pallete had been chosen for me in the 
>first place, 

It hasn't. There is no need to worry about palettes in a truecolor mode,
except for special cases like converting images between the 256 and
truecolor formats.
 

--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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