Skip to content

Commit

Permalink
OSD: Fix Input Overlay Clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz authored and F0bes committed Oct 26, 2024
1 parent c7b9ee9 commit 9b47dc0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pcsx2/ImGui/ImGuiOverlays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(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<float>(num_ports) * (font->FontSize + spacing)) - spacing));
const ImVec4 clip_rect(current_x, current_y, display_size.x - margin, display_size.y);

SmallString text;

Expand Down

0 comments on commit 9b47dc0

Please sign in to comment.