NEVERHOOD: Add Y-flipping to unpackSpriteNormal

This commit is contained in:
johndoe123 2013-01-29 12:07:38 +00:00 committed by Willem Jan Palenstijn
parent 70fdfd9d57
commit bdac28929f

View File

@ -315,9 +315,12 @@ void unpackSpriteRle(const byte *source, int width, int height, byte *dest, int
void unpackSpriteNormal(const byte *source, int width, int height, byte *dest, int destPitch, bool flipX, bool flipY) {
// TODO: Flip Y
const int sourcePitch = (width + 3) & 0xFFFC;
int sourcePitch = (width + 3) & 0xFFFC;
if (flipY) {
dest += destPitch * (height - 1);
destPitch = -destPitch;
}
if (!flipX) {
while (height-- > 0) {