mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(FB): fixed header reading.
This commit is contained in:
parent
69f87acac4
commit
d1766fde01
@ -44,8 +44,8 @@ namespace GameRes.Formats.Akatombo
|
||||
if (!header.AsciiEqual ("FB"))
|
||||
return null;
|
||||
return new ImageMetaData {
|
||||
Width = header.ToUInt32 (4),
|
||||
Height = header.ToUInt32 (6),
|
||||
Width = header.ToUInt16 (4),
|
||||
Height = header.ToUInt16 (6),
|
||||
BPP = header.ToUInt16 (2),
|
||||
};
|
||||
}
|
||||
@ -99,7 +99,8 @@ namespace GameRes.Formats.Akatombo
|
||||
pos = dst + 4 * (pos - m_width);
|
||||
else
|
||||
pos = dst + 4 * (-m_width & -pos) - 4;
|
||||
Buffer.BlockCopy (m_output, pos, m_output, dst, 4);
|
||||
if (pos >= 0)
|
||||
Buffer.BlockCopy (m_output, pos, m_output, dst, 4);
|
||||
}
|
||||
m_output[dst ] += ReadDiff();
|
||||
m_output[dst+1] += ReadDiff();
|
||||
|
Loading…
x
Reference in New Issue
Block a user