Fix crash when launching game with non-default GUI scale in config
See: #459
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user