mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(Hg3Opener.OpenEntry): flip image according to Hg3Reader.
This commit is contained in:
@@ -99,6 +99,8 @@ namespace GameRes.Formats.CatSystem
|
|||||||
LittleEndian.Pack ((ushort)info.Width, header, 0xc);
|
LittleEndian.Pack ((ushort)info.Width, header, 0xc);
|
||||||
LittleEndian.Pack ((ushort)info.Height, header, 0xe);
|
LittleEndian.Pack ((ushort)info.Height, header, 0xe);
|
||||||
header[0x10] = (byte)info.BPP;
|
header[0x10] = (byte)info.BPP;
|
||||||
|
if (!reader.Flipped)
|
||||||
|
header[0x11] = 0x20;
|
||||||
return new PrefixStream (header, new MemoryStream (pixels));
|
return new PrefixStream (header, new MemoryStream (pixels));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user