mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
NEVERHOOD: Add Y-flipping to unpackSpriteNormal
This commit is contained in:
parent
70fdfd9d57
commit
bdac28929f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user