From b19a6c3b817cc6790df8d24e61450ce33fa915b1 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 18 Dec 2023 13:05:06 +0000 Subject: [PATCH] Fix: Window width/height was doubly-scaled with automatic DPI switch. (#11598) --- src/gfx.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index 28650dff00..c6562b8f09 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -2002,8 +2002,6 @@ bool AdjustGUIZoom(bool automatic) if (automatic) { w->left = (w->left * _gui_scale) / old_scale; w->top = (w->top * _gui_scale) / old_scale; - w->width = (w->width * _gui_scale) / old_scale; - w->height = (w->height * _gui_scale) / old_scale; } if (w->viewport != nullptr) { w->viewport->zoom = Clamp(ZoomLevel(w->viewport->zoom - zoom_shift), _settings_client.gui.zoom_min, _settings_client.gui.zoom_max);