mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 07:38:16 +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);
|
int bottom = header.ToUInt16 (0xE);
|
||||||
var info = new GrdMetaData {
|
var info = new GrdMetaData {
|
||||||
Format = header.ToUInt16 (0),
|
Format = header.ToUInt16 (0),
|
||||||
Width = (uint)(right-left),
|
Width = (uint)System.Math.Abs (right - left),
|
||||||
Height = (uint)(bottom-top),
|
Height = (uint)System.Math.Abs (bottom - top),
|
||||||
BPP = bpp,
|
BPP = bpp,
|
||||||
OffsetX = left,
|
OffsetX = left,
|
||||||
OffsetY = screen_height - bottom,
|
OffsetY = screen_height - bottom,
|
||||||
|
Loading…
Reference in New Issue
Block a user