From 7eac71a4c7141d5e1c6677258c7129a3f3324a0f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 1 Nov 2023 00:27:05 +0100 Subject: [PATCH] GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas --- graphics/macgui/mactext-canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/macgui/mactext-canvas.cpp b/graphics/macgui/mactext-canvas.cpp index 5aaa1e9f667..ea1df391984 100644 --- a/graphics/macgui/mactext-canvas.cpp +++ b/graphics/macgui/mactext-canvas.cpp @@ -806,9 +806,9 @@ void MacTextCanvas::parsePicExt(const Common::U32String &ext, uint16 &wOut, uint // now we need to compute ratio if (w != 0) - ratio = w / 100 / (float)wOut; + ratio = w / (float)wOut; else - ratio = h / 100 / (float)hOut; + ratio = h / (float)hOut; } else { error("MacTextCanvas: malformed image extension '%s", ext.encode().c_str()); }