cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/21/15:45:38

From: "Ingo Ruhnke" <grumbel AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: erase text?
Date: Sat, 21 Feb 1998 16:45:37 +0100
Organization: Telemedia News Server
Lines: 22
Message-ID: <34ef385c.0@news2.cityweb.de>
References: <34EE62F4 DOT D62D07E9 AT wpol DOT com>
NNTP-Posting-Host: demdwu38.bertelsmann.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Kissell wrote
>In trasparent text mode and true color is there an easy way to erase
>text? Printing space characters over previous text and then replacing
>with the new text seems unreliable. A rapidly changing readout in a
>static location, a mouse coordinate display for example, becomes
>unreadable because the previous numbers never get erased. I'm not sure
>if this is a timing problem or that space characters in transparent mode
>dont actually get printed in order to speed up the Allegro code. Any
>ideas?

I think spaces in transparent mode are transparent. So you can't erase
text with them, but what about a little
  rectfill(screen, [...]);
over the region with the text, this should work and is also faster than
the use of spaces.
Another way whould be to change to none-transparent mode and after the
text is draw change back to transparent mode.

Ingo



- Raw text -


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