GUI: fix pat chan stat icons gone when center pat

This commit is contained in:
tildearrow 2023-10-29 18:48:02 -05:00
parent 64ef082650
commit a9f77a3ff7

View file

@ -932,7 +932,8 @@ void FurnaceGUI::drawPattern() {
ImGuiWindow* win=ImGui::GetCurrentWindow(); ImGuiWindow* win=ImGui::GetCurrentWindow();
ImVec2 posMin=win->DC.CursorPos; ImVec2 posMin=win->DC.CursorPos;
ImGui::Dummy(ImVec2(dpiScale,settings.iconSize*dpiScale)); 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(); ImDrawList* dl=ImGui::GetWindowDrawList();
ImVec2 iconPos[6]; ImVec2 iconPos[6];
DivChannelState* cs=e->getChanState(i); DivChannelState* cs=e->getChanState(i);