From: "Arthur" To: Subject: RE: Background in allegro? And how do I ini. 16-bit mode? Date: Tue, 20 Oct 1998 20:40:52 +0100 Message-ID: <000101bdfc61$8bc4ce00$7a4e08c3@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 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > I have a few questions... > > How do I change the background color in allegro, 13h mode? > (is it possible?) Change colour palette index 0 to the colour of your choice. > I would like to use a picture as a background and still use text_out > and so on with a ->diffrent palette<- than the pics? Is it possible? Not in mode 13h. You'll have to use a true colour display where there's no palette to be able to have free use of all colours. You could try palette splitting, but it's very poor on the PC due to hardware limitations, and I think it only works in modeX. > And how do I initialize 16bit mode (or higher) so I can blit high- > resolution pics, and use more colors at the same time? Use set_color_depth(16); before set_gfx_mode. Make sure that the resolution you set is one that your graphics card can handle. 640x480 is a good one for most graphics cards in 16-bit. I'd recommend using GFX_AUTODETECT as your driver, as it chooses the best driver for the job for you. HTH James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819