adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Color weirdness fixed (?)


From: Kai Sterker
Subject: [Adonthell-devel] Color weirdness fixed (?)
Date: Fri, 3 May 2002 22:03:02 +0200

On Fri, 3 May 2002 19:24:26 +0200 Kai Sterker wrote:

> > I have them ready, but they're 500 KB each... I'll send 'em to you 
> > privately.
> 
> Cool. Then locating and fixing the error shouldn't be that hard.

I made some tests with the Gimp and figured out what happens. The red
and blue channel are exchanged. When I split the image into its RGB
channels and reassemble it as BGR, the result looks perfect.

A further look at the SDL_CreateRGBSurface man page shows that the red
and blue masks are inverted on big endian systems, leading to the effect
we've seen. So I changed image.cc accordingly. Can you have a look
whether it works now, Nils? The modified file is attached.

Kai

Attachment: image.cc
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]