Mail Archives: djgpp/1998/01/31/13:02:07

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro screen fades
Date: Sat, 31 Jan 1998 17:36:56 +0000
Organization: None
Distribution: world
Message-ID: <>
References: <6avju6$ci2$1 AT newton DOT leba DOT net>
MIME-Version: 1.0
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ted Gress writes:
>Has anyone else had problems with screenfading in Allegro 3.0 using 24 
>bit true color??

If you mean using the fade_in() and fade_out() routines, they won't work
in truecolor modes because there is no palette to do the fade with. I
know this sounds silly, but a simple fade-to-black is quite a tricky
thing to implement in a truecolor mode. It can be done by repeatedly
drawing translucent black rectangles to gradually darken the image, or
using the lighting code to blit a series of images onto the screen while
changing the brightness, but I think this will be too slow to get a nice
smooth fade. Your best bet is probably just to think of some other cool
transitional effect, and avoid the fade altogether!

Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk -
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -

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