GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas

This commit is contained in:
Eugene Sandulenko 2023-11-01 00:27:05 +01:00
parent d9fd09ccdd
commit 7eac71a4c7
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -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());
}