Mail Archives: djgpp/1998/02/21/15:45:38
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 -