From f5e93fa876e05441d863cac633e1c7900bf679d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Lasersk=C3=B6ld?= Date: Wed, 22 May 2024 14:09:07 +0200 Subject: [PATCH] Do not resize window when zooming --- src/screen/guiscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screen/guiscreen.cpp b/src/screen/guiscreen.cpp index 144ab3e..c3b9de2 100644 --- a/src/screen/guiscreen.cpp +++ b/src/screen/guiscreen.cpp @@ -624,7 +624,7 @@ struct GuiScreen : public virtual IGuiScreen, public virtual IPixelSource { void enlargeText() { fontSize(_screen.fontSize() + 2); auto size = _window.size(); - resizePixels(size.w, size.h, true); + resizePixels(size.w, size.h, false); simulateWindowResizeEvent(); } @@ -635,7 +635,7 @@ struct GuiScreen : public virtual IGuiScreen, public virtual IPixelSource { } fontSize(_screen.fontSize() - 2); auto size = _window.size(); - resizePixels(size.w, size.h, true); + resizePixels(size.w, size.h, false); simulateWindowResizeEvent(); }