Fix input viewer's first-open position calculation.

This commit is contained in:
Malkierian 2025-04-09 18:37:51 -07:00
commit 32085b9d1a

View file

@ -151,7 +151,7 @@ void InputViewer::DrawElement() {
} }
ImVec2 mainPos = ImGui::GetWindowPos(); ImVec2 mainPos = ImGui::GetWindowPos();
ImVec2 size = ImGui::GetContentRegionAvail(); ImVec2 size = ImGui::GetMainViewport()->WorkSize;
#ifdef __WIIU__ #ifdef __WIIU__
const float scale = CVarGetFloat(CVAR_INPUT_VIEWER("Scale"), 1.0f) * 2.0f; const float scale = CVarGetFloat(CVAR_INPUT_VIEWER("Scale"), 1.0f) * 2.0f;