mirror of https://github.com/PCSX2/pcsx2.git
OSD: Fix Input Overlay Clipping
This commit is contained in:
parent
c7b9ee92b7
commit
9b47dc0ee3
|
@ -532,10 +532,9 @@ __ri void ImGuiManager::DrawInputsOverlay(float scale, float margin, float spaci
|
||||||
num_ports++;
|
num_ports++;
|
||||||
}
|
}
|
||||||
|
|
||||||
float current_x = margin;
|
float current_x = ImFloor(margin);
|
||||||
float current_y = display_size.y - margin - ((static_cast<float>(num_ports) * (font->FontSize + spacing)) - spacing);
|
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);
|
||||||
const ImVec4 clip_rect(current_x, current_y, display_size.x - margin, display_size.y - margin);
|
|
||||||
|
|
||||||
SmallString text;
|
SmallString text;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue