mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GRAPHICS: MACGUI: Fixed computation of image sizes in pixels in MacTextCanvas
This commit is contained in:
parent
d9fd09ccdd
commit
7eac71a4c7
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user