Fix crash when launching game with non-default GUI scale in config
See: #459
This commit is contained in:
@@ -1271,7 +1271,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
|
||||
/** Screen the window is on changed. */
|
||||
- (void)windowDidChangeBackingProperties:(NSNotification *)notification
|
||||
{
|
||||
bool did_adjust = AdjustGUIZoom(true);
|
||||
bool did_adjust = AdjustGUIZoom(AGZM_AUTOMATIC);
|
||||
|
||||
/* Reallocate screen buffer if necessary. */
|
||||
driver->AllocateBackingStore();
|
||||
|
||||
@@ -677,7 +677,7 @@ LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
|
||||
case WM_DPICHANGED: {
|
||||
auto did_adjust = AdjustGUIZoom(true);
|
||||
auto did_adjust = AdjustGUIZoom(AGZM_AUTOMATIC);
|
||||
|
||||
/* Resize the window to match the new DPI setting. */
|
||||
RECT *prcNewWindow = (RECT *)lParam;
|
||||
|
||||
Reference in New Issue
Block a user