sdljava.video.SDLSurface.isSrcAlphaBlit
Status: Beta
Brought to you by:
ivan_ganza
This method always returs false.
public boolean isSrcAlphaBlit() {
return ((getFlags() & SDLVideo.SDL_SRCCOLORKEY) == SDLVideo.SDL_SRCALPHA);
}
It does a bitwise AND with 0x00001000 and comparison with 0x00010000, which is always false.
I suggest using
(getFlags() & SDLVideo.SDL_SRCCOLORKEY) != 0
Shorter, correct and less error-prone.