www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/18/14:15:52

From: jaspeers AT aol DOT com (Jaspeers)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Problem, maybe a bug
Date: 15 Nov 1997 23:32:24 GMT
Lines: 23
Message-ID: <19971115233201.SAA22253@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL http://www.aol.com
References: <01bcefa1$1dd36e60$0200a8c0 AT ingo>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Hi
>I had a problem with Allegro2.2, every time i use the alert() funtion the
>textout() function gets another background color, from black to with and
>vice versa, and i don't know how to change the background color of the text
>output.

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.

So to draw text with transparent backgrounds(zero pixels are skipped), simply
 call:  text_mode(-1);
--------------------------------------------------------------------------
-----------
Justin Speers
mr_twiggy AT hotmail DOT com
--------------------------------------------------------------------------
------------

- Raw text -


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