From a29f0683d3cac601beb09cbf8684e9fd3acc5f0b Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 11 Dec 2023 02:55:58 +0000 Subject: [PATCH] Fix: Window width/height was doubly-scaled with automatic DPI switch. --- 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);