Mail Archives: djgpp/1997/08/20/13:06:29
In article <01bca2a6$080ef4c0$a69caec7 AT windows95>,
"Zoma" <Zoma AT sprynet DOT com> wrote:
>
> I use Allegro, and think it is great, but there is a strange "error?" that
> occurs with its graphics routines. I am using Mode 13h and whenever I
> clear the screen, a border forms around the edges of the screen in the 0
> color. Why does this happen, and how can I prevent it from happening? I
> don't use black as my zero color, so this is beginning to get annoying.
> Thanks,
>
> Zoma AT sprynet DOT com
Try this code. (I haven't tested this in mode 13h.)
__dpmi_regs r;
r.h.ah = 0x10;
r.h.al = 1;
r.h.bh = color_index;
/* index in your palette for black, or whatever border color you want */
__dpmi_int(0x10, &r);
(You'll need to do this whenever you change which index is black.)
Mitchell
--
Mitchell Spector, Enchanted Learning Software
E-mail: spector AT EnchantedLearning DOT com
Award-winning web site for children (Little Explorers, Zoom Dinosaurs,
Zoom Birds, Rebus Rhymes, and more): http://www.EnchantedLearning.com
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
- Raw text -