Skip to content

Commit

Permalink
ImGuiFullscreen: Fix choice popup selected drawing over border
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz authored and lightningterror committed Aug 19, 2024
1 parent c72d98d commit 69574ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pcsx2/ImGui/ImGuiFullscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,12 @@ bool ImGuiFullscreen::ActiveButton(const char* title, bool is_active, bool enabl
{
if (is_active)
{
// don't draw over a prerendered border
const float border_size = ImGui::GetStyle().FrameBorderSize;
const ImVec2 border_size_v = ImVec2(border_size, border_size);
ImVec2 pos, size;
GetMenuButtonFrameBounds(height, &pos, &size);
ImGui::RenderFrame(pos, pos + size, ImGui::GetColorU32(UIPrimaryColor), false);
ImGui::RenderFrame(pos + border_size_v, pos + size - border_size_v, ImGui::GetColorU32(UIPrimaryColor), false);
}

ImRect bb;
Expand Down

0 comments on commit 69574ae

Please sign in to comment.