mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(CFP): minor fix.
This commit is contained in:
parent
9ff0da050f
commit
8b1bf35a20
@ -104,12 +104,11 @@ namespace GameRes.Formats.Tail
|
|||||||
int start_pos = header.ToInt32 (0x10);
|
int start_pos = header.ToInt32 (0x10);
|
||||||
if (start_pos < 0x36)
|
if (start_pos < 0x36)
|
||||||
return null;
|
return null;
|
||||||
int extra_length = header.ToInt32 (0x1C);
|
|
||||||
int width = header.ToInt32 (0x14);
|
int width = header.ToInt32 (0x14);
|
||||||
int height = header.ToInt32 (0x18);
|
int height = header.ToInt32 (0x18);
|
||||||
var info = new CfpMetaData {
|
var info = new CfpMetaData {
|
||||||
Width = header.ToUInt32 (0x14),
|
Width = (uint)width,
|
||||||
Height = header.ToUInt32 (0x18),
|
Height = (uint)height,
|
||||||
BPP = 32,
|
BPP = 32,
|
||||||
};
|
};
|
||||||
info.DataLength = width * height * 4;
|
info.DataLength = width * height * 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user