[Top][All Lists]
[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
image.cc
Description: Text document
- Re: [Adonthell-devel] mac os x port - success stories, (continued)
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/03
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/03
- [Adonthell-devel] Color weirdness fixed (?),
Kai Sterker <=
- Re: [Adonthell-devel] Color weirdness fixed (?), Nils Hesse, 2002/05/04
- Re: [Adonthell-devel] Color weirdness fixed (?), Kai Sterker, 2002/05/04
- Re: [Adonthell-devel] Color weirdness fixed (?), Nils Hesse, 2002/05/04
- Re: [Adonthell-devel] Color weirdness fixed (?), Kai Sterker, 2002/05/04
- Re: [Adonthell-devel] Color weirdness fixed (?), Alexandre Courbot, 2002/05/04
- Re: [Adonthell-devel] Color weirdness fixed (?), Kai Sterker, 2002/05/04
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/04
- Re: [Adonthell-devel] mac os x port - success stories, Kai Sterker, 2002/05/04
- Re: [Adonthell-devel] mac os x port - success stories, Nils Hesse, 2002/05/04
- Re: [Adonthell-devel] mac os x port - success stories, Alexandre Courbot, 2002/05/04