From e19cd39e960c1e985315ce898b574bd3cf36ac32 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 20 Jan 2024 12:41:07 -0500 Subject: [PATCH] GUI: why is the input latch lowercase --- src/gui/gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index b06444252..359c27e51 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -2760,7 +2760,7 @@ void FurnaceGUI::editOptions(bool topMenu) { } else if (latchIns==-1) { strcpy(id,"..##LatchIns"); } else { - snprintf(id,63,"%.2x##LatchIns",latchIns&0xff); + snprintf(id,63,"%.2X##LatchIns",latchIns&0xff); } if (ImGui::Selectable(id,latchTarget==1,ImGuiSelectableFlags_DontClosePopups)) { latchTarget=1; @@ -2780,7 +2780,7 @@ void FurnaceGUI::editOptions(bool topMenu) { if (latchVol==-1) { strcpy(id,"..##LatchVol"); } else { - snprintf(id,63,"%.2x##LatchVol",latchVol&0xff); + snprintf(id,63,"%.2X##LatchVol",latchVol&0xff); } if (ImGui::Selectable(id,latchTarget==2,ImGuiSelectableFlags_DontClosePopups)) { latchTarget=2; @@ -2796,7 +2796,7 @@ void FurnaceGUI::editOptions(bool topMenu) { ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PATTERN_INACTIVE]); } else { const unsigned char data=latchEffect; - snprintf(id,63,"%.2x##LatchFX",data); + snprintf(id,63,"%.2X##LatchFX",data); ImGui::PushStyleColor(ImGuiCol_Text,uiColors[fxColors[data]]); } @@ -2811,7 +2811,7 @@ void FurnaceGUI::editOptions(bool topMenu) { if (latchEffectVal==-1) { strcpy(id,"..##LatchFXV"); } else { - snprintf(id,63,"%.2x##LatchFXV",latchEffectVal&0xff); + snprintf(id,63,"%.2X##LatchFXV",latchEffectVal&0xff); } if (ImGui::Selectable(id,latchTarget==4,ImGuiSelectableFlags_DontClosePopups)) { latchTarget=4;