GRAPHICS: MACGUI: initialize bitImage to 0.

This commit is contained in:
ysj1173886760 2021-07-23 17:05:17 +08:00
parent dc8418b547
commit 7e2f3edc61

View File

@ -565,6 +565,7 @@ MacFONTFont *MacFONTFont::scaleFont(const MacFONTFont *src, int newSize, int sla
uint bitImageSize = data._rowWords * data._fRectHeight;
data._bitImage = new byte[bitImageSize];
memset(data._bitImage, 0, bitImageSize * sizeof(byte));
int dstPitch = data._rowWords;