delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/08/07:01:37

From: Shawn Hargreaves <shawn AT talula DOT demon DOT co DOT uk>
To: djgpp AT delorie DOT com
MMDF-Warning: Parse error in original version of preceding line at punt-2.mail.demon.net
Subject: Re: Allegro
Date: Thu, 8 May 1997 08:55:33 +0100
MIME-Version: 1.0
Message-ID: <863087754.0919969.0@[194.129.18.166]>

Bryan Murphy writes:
> When I display bitmap fonts with Allegro, the background is always color 
> 0.   Is there an easy way to change this w/o actually having to change 
> color 0 to a different color in the palette?

From allegro.txt:

void text_mode(int mode);
   Sets the mode in which text will be drawn. If mode is zero or positive,
   text output will be opaque and the background of the characters will be
   set to color #mode. If mode is negative, text will be drawn
transparently
   (ie. the background of the characters will not be altered). The default
   is a mode of zero.


--
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 -


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