cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/07/05:10:42

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE30140E946@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: allegro and bitmaps
Date: Mon, 7 Jun 1999 10:10:07 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

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 -


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