Skip to content

Commit 2c4fe61

Browse files
committed
fix: handle negative character codes in font rendering on macOS
1 parent d62a4b2 commit 2c4fe61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Libraries/Source/WWVegas/WW3D2/render2dsentence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ FontCharsClass::Get_Char_Data (WCHAR ch)
12581258
const FontCharsClassCharDataStruct *retval = nullptr;
12591259

12601260
#ifdef __APPLE__
1261-
if ( ch >= 0xFFFD )
1261+
if ( ch >= 0xFFFD || ch < 0 )
12621262
{
12631263
ch = L'?';
12641264
}

0 commit comments

Comments
 (0)