The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Blit/Colorkey docs wrong
Alexander Sabourenkov
Guest

Hello.


http://wiki.libsdl.org/SDL_BlitSurface


has it multiple times that:

  ... if SDL_SRCCOLORKEY set, only copy the pixels matching the RGB values of the source color key ...


(I think that was taken verbatim from SDL_surface.h)



while the code is unambigously

if ( Pixel != ckey ) {

    ... do copying  ....
}


Also there is no such thing as SDL_SRCCOLORKEY any more.



Quite confusing, isn't it?


--


./lxnt