mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(GRD): take absolute width/height values.
This commit is contained in:
parent
740a604c50
commit
187d4bd4f2
@ -70,8 +70,8 @@ namespace GameRes.Formats.TmrHiro
|
||||
int bottom = header.ToUInt16 (0xE);
|
||||
var info = new GrdMetaData {
|
||||
Format = header.ToUInt16 (0),
|
||||
Width = (uint)(right-left),
|
||||
Height = (uint)(bottom-top),
|
||||
Width = (uint)System.Math.Abs (right - left),
|
||||
Height = (uint)System.Math.Abs (bottom - top),
|
||||
BPP = bpp,
|
||||
OffsetX = left,
|
||||
OffsetY = screen_height - bottom,
|
||||
|
Loading…
x
Reference in New Issue
Block a user