delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/30/10:20:19

From: igp AT vlc DOT servicom DOT es (Ignacio García Pérez)
Newsgroups: comp.os.msdos.djgpp
Subject: ALLEGRO and border color...
Date: Wed, 30 Sep 1998 14:00:01 GMT
Organization: GND
Lines: 29
Message-ID: <361237c9.7072235@crispin>
Reply-To: igp AT vlc DOT servicom DOT es
NNTP-Posting-Host: rdsi16.vlc.servicom.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.01/32.397
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

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.

Any suggestions ?

Regards. Nacho.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019