Mail Archives: djgpp/1997/08/15/11:49:04
>Could someone help me? I used a program called ttf2pcx that converted my
>True Type Fonts into .PCX files so Allegro could use them. Now, I can get
>the font to display on the screen just fine. But my problem is that it
>always is on a black background. I need the text to be on a blue back
>ground. I tried loading in a new pallete, but it just changed all the other
>colors on my screen. Could someone help me? Thanks.
What you need is to use the function text_mode(int mode);
This function 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.
Directly taken from the Allegro docs...
- G.A. Hankiewicz - ICQ 255289 - gregorio AT jet DOT es
http://web.jet.es/gregorio
- Gogosoftware
http://gogosoftware.base.org
- Raw text -