[saco] Implement/match GetDeathWindowFontSize()

This commit is contained in:
RD42 2024-07-17 22:24:15 +08:00
parent c2beca07fd
commit bdf9abb13d

View File

@ -526,3 +526,15 @@ int GetFontSize()
return size + 2 * pConfig->GetIntVariable("fontsize");
}
int GetDeathWindowFontSize()
{
int size = 14;
if (pGame->GetScreenWidth() < 1024)
size = 12;
int fontsize = size + 2 * pConfig->GetIntVariable("fontsize");
if(fontsize < size)
fontsize = size;
return fontsize;
}