From 187d4bd4f2d84b407acec55af382537c8b7c1c22 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 4 Oct 2018 07:52:18 +0400 Subject: [PATCH] (GRD): take absolute width/height values. --- ArcFormats/Tmr-Hiro/ImageGRD.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Tmr-Hiro/ImageGRD.cs b/ArcFormats/Tmr-Hiro/ImageGRD.cs index 2e36581b..aaf3cc0b 100644 --- a/ArcFormats/Tmr-Hiro/ImageGRD.cs +++ b/ArcFormats/Tmr-Hiro/ImageGRD.cs @@ -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,