mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
FullscreenUI: Fix controller navigation breaking after Big Picture Mode window resized
If Big Picture mode's window is resized too greatly, the window's NavRectRel are stale and controller navigation breaks. This also happens when toggling fullscreen. Now we force a nav reinit when resizing.
This commit is contained in:
committed by
lightningterror
parent
414f1660ed
commit
342db51523
@@ -267,6 +267,9 @@ void ImGuiManager::WindowResized()
|
||||
|
||||
// Scale might have changed as a result of window resize.
|
||||
RequestScaleUpdate();
|
||||
|
||||
if (GImGui->NavWindow != nullptr)
|
||||
ImGui::NavInitWindow(GImGui->NavWindow, true);
|
||||
}
|
||||
|
||||
void ImGuiManager::RequestScaleUpdate()
|
||||
|
||||
Reference in New Issue
Block a user