[Scummvm-git-logs] scummvm master -> b221999e1ee5d7a299b162733a958cdd53b8683a
sev-
sev at scummvm.org
Sun Aug 16 22:51:53 UTC 2020
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:
b221999e1e GRAPHICS: Allocate more memory on generating scaled Mac fonts
Commit: b221999e1ee5d7a299b162733a958cdd53b8683a
https://github.com/scummvm/scummvm/commit/b221999e1ee5d7a299b162733a958cdd53b8683a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-17T00:50:56+02:00
Commit Message:
GRAPHICS: Allocate more memory on generating scaled Mac fonts
Changed paths:
graphics/fonts/macfont.cpp
diff --git a/graphics/fonts/macfont.cpp b/graphics/fonts/macfont.cpp
index 32817d064e..7677a460bd 100644
--- a/graphics/fonts/macfont.cpp
+++ b/graphics/fonts/macfont.cpp
@@ -420,7 +420,7 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, bool bo
Graphics::Surface srcSurf, tmpSurf;
srcSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2, newSize * 2),
PixelFormat::createFormatCLUT8());
- int dstGraySize = newSize * 2 * newSize;
+ int dstGraySize = newSize * 20 * newSize;
int *dstGray = (int *)malloc(dstGraySize * sizeof(int));
tmpSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2 + 2, newSize * 2 + 2),
More information about the Scummvm-git-logs
mailing list