cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/08/18:53:18

From: umkratz AT cc DOT umanitoba DOT ca (Perry Cameron Kratz)
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro text_mode() problems...
Date: 7 Feb 1997 16:00:05 GMT
Organization: University of Manitoba, Winnipeg, Manitoba, Canada
Lines: 14
Message-ID: <5dfji5$6ot$1@canopus.cc.umanitoba.ca>
NNTP-Posting-Host: merak.cc.umanitoba.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am trying to print out some text over a bitmap. If I use textout(), the 
text appears in the color I specify, but with a black background, thus 
changing the background picture slightly. According to the Allegro docs,
if you specify a negative text_mode(), the text will be printed without 
altering the background pic. But, my code which looks a little like,

text_mode(-200);    /* I've tried other negative numbers as well */
textout(screen,font,"Hello world!",0,0,255);

This causes some weird things to happen. Once the mouse suddenly was 
constrained to a certain section of the screen (I have no code for this)
and other times the entire screen goes black with a cursor flashing in 
the top left corner. The particular part of the picture I am trying to 
write on is white, and I want black letters,

- Raw text -


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