From 9b47dc0ee39dedb439ad4c7a82e428a48cf94303 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:51:10 +0700 Subject: [PATCH] OSD: Fix Input Overlay Clipping --- pcsx2/ImGui/ImGuiOverlays.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pcsx2/ImGui/ImGuiOverlays.cpp b/pcsx2/ImGui/ImGuiOverlays.cpp index b1b9eb0a0dd4a..e4cd071e2b5fd 100644 --- a/pcsx2/ImGui/ImGuiOverlays.cpp +++ b/pcsx2/ImGui/ImGuiOverlays.cpp @@ -532,10 +532,9 @@ __ri void ImGuiManager::DrawInputsOverlay(float scale, float margin, float spaci num_ports++; } - float current_x = margin; - float current_y = display_size.y - margin - ((static_cast(num_ports) * (font->FontSize + spacing)) - spacing); - - const ImVec4 clip_rect(current_x, current_y, display_size.x - margin, display_size.y - margin); + float current_x = ImFloor(margin); + float current_y = ImFloor(display_size.y - margin - ((static_cast(num_ports) * (font->FontSize + spacing)) - spacing)); + const ImVec4 clip_rect(current_x, current_y, display_size.x - margin, display_size.y); SmallString text;