Mail Archives: djgpp/1997/06/24/19:51:55
Jon wrote:
> However, I've noticed that I don't
> seem to be able to use textout reliably anymore- sometimes (and
> seeming randomly) textout decides to ignore my FG and BG colors,
> making them the same (both FG, I think) so textout text isn't
> readable.
There is an Allegro function called "text_mode" that is designed
specifically to fix this problem. Just call text_mode and send it -1 so
that text will appear with an invisible background.
Example: text_mode(-1);
Here is a quotation from the Allegro documentation:
> 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.
Hope this helps,
--
Alan M. Doerhoefer:
------------------------------------------
aland AT u DOT washington DOT edu
------------------------------------------
aland AT seanet DOT com
------------------------------------------
http://www.seanet.com/~aland
- Raw text -