Mail Archives: djgpp/1999/06/07/05:10:42
Nathan "DrumNark" Brown writes:
> textout(bitmap,font(usually just "font" or
> datfile[FONT].dat),string,x,y,color);
>
> this doesn't mask though, which means you have to make your own
> sub to do that, which is easy to do with a little ingenuity...
>
> int FunkyText(char *str,int x,int y,int col) {
> clear(textbuffer);
> textout(textbuffer,font,str,0,0,col);
> masked_blit(textbuffer,screen,0,0,x,y,320,15);
> }
Ingenious for sure, but also inefficient, and won't work in truecolor
modes. It would be much simpler to just call text_mode(-1) before
using textout()...
Shawn Hargreaves.
- Raw text -