delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/20/15:44:45

From: "Arthur" <arfa AT clara DOT net>
To: <djgpp AT delorie DOT com>
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
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <JH3X1.2458$RF2.2970906@nntpserver.swip.net>
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

- Raw text -


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