Message-ID: <3357F797.16D6@ccpl.carr.lib.md.us> Date: Fri, 18 Apr 1997 18:37:11 -0400 From: Hez Carty Organization: Thistle Dew Fine Farm Inc. MIME-Version: 1.0 To: spector AT EnchantedLearning DOT com CC: djgpp AT delorie DOT com Subject: Re: Background color in Allegro References: <861302268 DOT 21239 AT dejanews DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 UsenetThe color 0 is the (default?) background color for the screen. So, if you really must set color 0 to some other color, and you want the background to stay black, you will have to clear the screen to another color that you have set to black before doing your other palette settings. And no, this is not a Allegro specific thing. It's been true in every other graphic program/lib I've ever seen, even in non-VGA modes. Hope this helps somewhat. Hez