mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match GetFontSize()
This commit is contained in:
@@ -510,3 +510,19 @@ void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString)
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
int GetFontSize()
|
||||
{
|
||||
int size;
|
||||
|
||||
if (pGame->GetScreenWidth() < 1024)
|
||||
size = 14;
|
||||
else if (pGame->GetScreenWidth() < 1400)
|
||||
size = 16;
|
||||
else if (pGame->GetScreenWidth() < 1600)
|
||||
size = 18;
|
||||
else
|
||||
size = 20;
|
||||
|
||||
return size + 2 * pConfig->GetIntVariable("fontsize");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user