Message-ID: <008701be4fb2$607054a0$b3f9c6c3@johans-dator> From: "Johan Henriksson" To: Subject: Re: Newbie Date: Wed, 3 Feb 1999 21:18:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson, Sweden HTTP://come.to/jhewok | Primary mail: johan DOT he AT telia DOT com #UIN 12035895 Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com Leadprogrammer and FX-specialist at Real software http://come.to/real_software ************************************************************************* >I've got a problem. I have made a simple program which displays a picture. >The problem is that it only works with 8 bit bmp's. What am I doing wrong? nothing. The computer does what you tell it to do. >Do I have to do something special to make it support higher modes than 8 >bit? Yup. set_color_depth(); Valid numbers are 8, 15, 16 and 32 > >I don't get any errors when I run the program, it just doesn't display the >picture right. It is because you have to set the palette in 8-bit colormode. Call set_palette(pal); _after_ you've loaded the images. > >I am using the Allegro library. There is a special mailinglist for Allegro. Check the homepage. > >Thanks... no problem