mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
GRAPHICS: Allocate more memory on generating scaled Mac fonts
This commit is contained in:
parent
7563759f4b
commit
b221999e1e
@ -420,7 +420,7 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, bool bo
|
|||||||
Graphics::Surface srcSurf, tmpSurf;
|
Graphics::Surface srcSurf, tmpSurf;
|
||||||
srcSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2, newSize * 2),
|
srcSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2, newSize * 2),
|
||||||
PixelFormat::createFormatCLUT8());
|
PixelFormat::createFormatCLUT8());
|
||||||
int dstGraySize = newSize * 2 * newSize;
|
int dstGraySize = newSize * 20 * newSize;
|
||||||
int *dstGray = (int *)malloc(dstGraySize * sizeof(int));
|
int *dstGray = (int *)malloc(dstGraySize * sizeof(int));
|
||||||
|
|
||||||
tmpSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2 + 2, newSize * 2 + 2),
|
tmpSurf.create(MAX(src->getFontSize() * 2, newSize * 2), MAX(src->getFontSize() * 2 + 2, newSize * 2 + 2),
|
||||||
|
Loading…
Reference in New Issue
Block a user