From: "Daniel Krenn" 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 Precedence: bulk >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 Australia.