Mail Archives: djgpp/1997/04/19/08:52:28
spector AT EnchantedLearning DOT com wrote:
>
> I've observed that whichever color I set to be color 0 in the palette
> becomes the background color of my screen (that is, the color of the area
> outside the drawable area). Does anyone know if there's any way around
> this, or is this simply the way all video cards (or my video card) work?
>
> I'd like to change color 0 in my palette, but I want to keep the area
> outside the drawable area of my display black. Can this be done? (I'm
> using Allegro, if that matters.)
>
> Thanks in advance for any information on this.
>
> Mitchell
> --
> Mitchell Spector
> Enchanted Learning Software
> E-mail: spector AT EnchantedLearning DOT com
> Web site: http://www.EnchantedLearning.com
>
> -------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
Hi,
I´m not that familair with allegro but it seems that the PAGE-clearing
routine sets all the bytes to 0, try rewriting this routine so that they
become another value eg. memset( page-offset, another-color,
size-of-page);
greetinx,
Peter
- Raw text -