Reply-To: From: "Arthur" To: "DJGPP Mailing List" , Subject: RE: ALLEGRO and border color... Date: Wed, 30 Sep 1998 22:53:40 +0100 Message-ID: <000101bdecbc$c90fbae0$774d08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 In-Reply-To: <361237c9.7072235@crispin> > I'm using allegro in 256 color mode, with a pseudo-RGB palette and a > conversion table. The initialization code looks like: > > PALETTE p; RGB_MAP m; > generate_332_palette(p); > create_rgb_table(&m,p,0); > set_palette(p); > > I've noticed that in the 332 palette, index 0 which should be black is > pink, probably because tne index 0 is the transparent color in sprites > and pink is very visible, in case it ever gets painted. Index 254 is > set to black. > > All my code works as expected, because I use "makecol" to set the > colors, so makecol(0,0,0) will yield index 254 and will be painted as > black. > > THE PROBLEM is that, as index 0 is set to pink, the screen border > looks pink, and I haven't figured out yet how to change the screen > border color. The screen border is set to colour index 0. If that is pink, the border's pink. Set index 0 to black. Also note that pink is only transparent in true-colour modes. Index 0 is transparent in palettised modes. James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819