[Scummvm-git-logs] scummvm master -> 7eac71a4c7141d5e1c6677258c7129a3f3324a0f
sev-
noreply at scummvm.org
Tue Oct 31 23:27:40 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7eac71a4c7 GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas
Commit: 7eac71a4c7141d5e1c6677258c7129a3f3324a0f
https://github.com/scummvm/scummvm/commit/7eac71a4c7141d5e1c6677258c7129a3f3324a0f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-11-01T00:27:34+01:00
Commit Message:
GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas
Changed paths:
graphics/macgui/mactext-canvas.cpp
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());
}
More information about the Scummvm-git-logs
mailing list