[SDL] Re: Re: Problem with reusing array of surfaces.
john at johnnypops.demon.co.uk
Sun May 11 10:20:01 PDT 2003
when you say WinNT, do you mean NT3/4 or are you including Win2K and XP?
Win2K, XP, 9X, and ME use the DirectX drivers by default.
NT3/4 use the WinDIB drivers by default.
That might be the root cause of the differences in behaviour you are
I suspect that SDL_HWPALETTE is ignored unless a paletted video mode
is in use.
A common problem is that the transparent colour on a surface is different
after an SDL_DisplayFormat() call, and I am not certain that a surface
created by SDL_DisplayFormat() retains accurate colorkey information.
Have you tried mapping and setting the colour key on the surface created
by SDL_DisplayFormat() rather than on the surface you load and then
convert? In other word, setting the colourkey, as a last act, on the
surface returned by LoadIMG().
----- Original Message -----
From: "Hri" <hr_hristov at hotmail.com>
To: <sdl at libsdl.org>
Sent: Sunday, May 11, 2003 5:38 PM
Subject: [SDL] Re: Re: Problem with reusing array of surfaces.
> > Your colorkey problems may just be surface space exhaustion or
> > maybe you need to convert and set the colorkey on the surface
> > returned by SDL_DisplayFormat(), I don't know. Anyone else?
> > If you supply a link to at least one test image, I will compile this
> > and try it,
> Well, thank you very much! Unfortunately I don't have any idea where to
> upload images, programs and stuff right now.
> I'll look next week (or the week after next week) for a free hosting
> site where I can upload stuff.
> Or maybe the problems is that I use SDL_HWPALETTE in 32 bit mode? This
> does not happen under WinNT just under Win98.
> SDL mailing list
> SDL at libsdl.org
More information about the SDL