Skip to content

Commit

Permalink
Fix pthom/imgui_bundle#234: do not resize if full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jul 7, 2024
1 parent 37d5a25 commit 64777fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 64777fc

Please sign in to comment.