Fix release mode issues with R_TextWidth_Hk

This commit is contained in:
Jan
2021-08-23 22:44:57 +02:00
parent 6043dabc3c
commit ac1ade1976
2 changed files with 14 additions and 8 deletions

View File

@ -1260,16 +1260,21 @@ namespace Game
}
}
__declspec(naked) Glyph* R_GetCharacterGlyph(Font_s* font, unsigned int letter)
__declspec(naked) Glyph* R_GetCharacterGlyph(Font_s* /*font */, unsigned int /*letter*/)
{
__asm
{
mov edi, [esp + 8]
push [esp+4]
push eax
pushad
mov edi, [esp + 0x28 + 4]
push [esp + 0x24 + 4]
mov eax, 0x5055C0
call eax
add esp,0x4
mov [esp + 0x20],eax
popad
pop eax
retn
}
}