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