Fix input viewer's first-open position calculation. (#5376)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user