Fix input viewer's first-open position calculation. (#5376)

This commit is contained in:
Malkierian 2025-04-10 06:49:21 -07:00 committed by GitHub
commit 1791a0c52c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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