Hello,
This is my first time posting to the list. I got into SDL
programming about 3 days ago.
I’m trying to blit one surface onto another. None of them is the
display. I get the second surface blank. Any idea on why it does
this?
For the moment I wrote my own pixel-by-pixel copy function, but
somehow I can’t use the surface colorkey attribute in any way to
check if I should copy a pixel or not. Testing for equality doesn’t
work, and masking the alpha value of the pixel so it’s always 0 and
so I can compare only RGB still doesn’t do anything.
Both surfaces have a 32 bit color depth. Blitting to the screen and
then trying to get the result out of there isn’t one of my options.
Platforms tested on:
- Linux (Debian Sarge, SDL 1.2.7-7 from repository, g++ 3.3.4)
- Windows (XP, SP2, SDL 1.2.7 latest from site, VS.NET 2002)
In short:
SDL_BlitSurface(Src, NULL, Dest, &Position)
gives a blank surface in Dest, although Position is updated
accordingly. Both Src and Dest are of type SDL_SWSURFACE, 32 bit
color depth and have no other parameters associated with them.
I tryed looking into the SDL source code, but I didn’t have time to
find how and where the actual blitter is since they are used by
means of function pointers, so I can’t submit a patch either.
Thanks.
BTW, is there an achive to this mailing list?–
Best regards,
Uplink mailto:@Uplink