From 64777fc4842159c4d6e7efc1b0ebcc3173cc77b2 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Sun, 7 Jul 2024 19:12:38 +0200 Subject: [PATCH] Fix https://github.com/pthom/imgui_bundle/issues/234: do not resize if full screen --- src/hello_imgui/internal/backend_impls/abstract_runner.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp index 2a2782b0..d77f1fa2 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp @@ -228,8 +228,12 @@ bool AbstractRunner::ShallSizeWindowRelativeTo96Ppi() params.appWindowParams.windowGeometry.windowSizeState == HelloImGui::WindowSizeState::Standard || params.appWindowParams.windowGeometry.windowSizeState == HelloImGui::WindowSizeState::Minimized); + bool isFullScreen = + params.appWindowParams.windowGeometry.fullScreenMode != HelloImGui::FullScreenMode::NoFullScreen; + shallSizeRelativeTo96Ppi = - isStandardSizeMode && isWindowPpiRelativeSize && !doRestorePreviousGeometry; + isStandardSizeMode && isWindowPpiRelativeSize && !doRestorePreviousGeometry && !isFullScreen; + } return shallSizeRelativeTo96Ppi; }