From daa31bb02d9b8363923ebc8ede0a24749a9bee8a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 31 Dec 2012 21:46:41 -0800 Subject: [PATCH] Fix fake sceFontGetCharGlyphImage() overflowing. --- Core/HLE/sceFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceFont.cpp b/Core/HLE/sceFont.cpp index 8c026e1913..13a3a08ab6 100644 --- a/Core/HLE/sceFont.cpp +++ b/Core/HLE/sceFont.cpp @@ -316,7 +316,7 @@ int sceFontGetCharGlyphImage(u32 libHandler, u32 charCode, u32 glyphImagePtr) int bytesPerLine = Memory::Read_U16(glyphImagePtr+16); int buffer =Memory::Read_U32(glyphImagePtr+20); - Memory::Memset(buffer, 0x7F, bytesPerLine*bufHeight*pixelFormat); + Memory::Memset(buffer, 0x7F, bytesPerLine * bufHeight); return 0; }