mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match GetFontSize()
This commit is contained in:
parent
62eaba43a7
commit
c2beca07fd
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user