Fix crash when launching game with non-default GUI scale in config

See: #459
This commit is contained in:
Jonathan G Rennison
2022-12-06 18:29:55 +00:00
parent e647075870
commit 351090ae7f
6 changed files with 16 additions and 10 deletions

View File

@@ -83,9 +83,15 @@ void ChangeGameSpeed(bool enable_fast_forward);
void DrawMouseCursor();
void ScreenSizeChanged();
void GameSizeChanged();
bool AdjustGUIZoom(bool automatic);
void UndrawMouseCursor();
enum AdjustGUIZoomMode {
AGZM_MANUAL,
AGZM_AUTOMATIC,
AGZM_STARTUP,
};
bool AdjustGUIZoom(AdjustGUIZoomMode mode);
/** Size of the buffer used for drawing strings. */
static const int DRAW_STRING_BUFFER = 2048;