diff --git a/saco/main.cpp b/saco/main.cpp index 73a1629..6bec272 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -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"); +} +