From 9c8d1223894544763463abeef1624299ee5c4f09 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 22 Apr 2022 01:27:27 -0500 Subject: [PATCH] GUI: use pattern font for input latch --- TODO.md | 1 - src/gui/gui.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index f9230306..4c200e02 100644 --- a/TODO.md +++ b/TODO.md @@ -32,7 +32,6 @@ - add another FM editor layout - try to find out why does VSlider not accept keyboard input - finish lock layout -- note input latch! - if macros have release, note off should release them - add "don't scroll on cursor movement" option - add ability to select entire row when clicking on row number diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 880d6bc5..009952a6 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1935,7 +1935,8 @@ void FurnaceGUI::editOptions(bool topMenu) { } ImGui::Text("input latch"); - if (ImGui::BeginTable("opMaskTable",5,ImGuiTableFlags_Borders|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_NoHostExtendX)) { + ImGui::PushFont(patFont); + if (ImGui::BeginTable("inputLatchTable",5,ImGuiTableFlags_Borders|ImGuiTableFlags_SizingFixedFit|ImGuiTableFlags_NoHostExtendX)) { static char id[64]; ImGui::TableNextRow(); ImGui::TableNextColumn(); @@ -2032,6 +2033,7 @@ void FurnaceGUI::editOptions(bool topMenu) { ImGui::PopStyleColor(); ImGui::EndTable(); } + ImGui::PopFont(); ImGui::SameLine(); if (ImGui::Button("Set")) { DivPattern* pat=e->song.pat[cursor.xCoarse].getPattern(e->song.orders.ord[cursor.xCoarse][curOrder],true);