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

From: "Daniel Krenn" <dkrenn AT usa DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Problem, maybe a bug
Date: Sat, 15 Nov 1997 23:30:17 +1000
Organization: Telstra Internet
Lines: 17
Message-ID: <346da34d.0@news.netski.net.au>
References: <01bcefa1$1dd36e60$0200a8c0 AT ingo>
NNTP-Posting-Host: 203.55.38.83
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>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.


Imho, you should be using text_mode() before any textout() calls, because
you never know when you may add code that will affect your previous
textout() calls. If you have never used text_mode() before, the format is
text_mode(int mode); where mode is equal to (-1) for transparent text,
otherwise you set it to the index of the colour you want to be the text
background colour (0 to 255).

Daniel <dkrenn AT usa DOT net> Australia.



- Raw text -


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