From a9f77a3ff700bfa8cfdef70c7017ffa6664e9264 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 29 Oct 2023 18:48:02 -0500 Subject: [PATCH] GUI: fix pat chan stat icons gone when center pat --- src/gui/pattern.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/pattern.cpp b/src/gui/pattern.cpp index 215949ebba..212de12f29 100644 --- a/src/gui/pattern.cpp +++ b/src/gui/pattern.cpp @@ -932,7 +932,8 @@ void FurnaceGUI::drawPattern() { ImGuiWindow* win=ImGui::GetCurrentWindow(); ImVec2 posMin=win->DC.CursorPos; ImGui::Dummy(ImVec2(dpiScale,settings.iconSize*dpiScale)); - ImVec2 posMax=ImGui::GetContentRegionMax(); + ImVec2 posMax=ImVec2(win->WorkRect.Max.x,win->WorkRect.Max.y); + posMin.y-=ImGui::GetStyle().ItemSpacing.y*0.5; ImDrawList* dl=ImGui::GetWindowDrawList(); ImVec2 iconPos[6]; DivChannelState* cs=e->getChanState(i);