From 3970e5a49dd778cd072a11092989bf59b944d3b2 Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Sat, 3 Feb 2024 23:18:46 +0400 Subject: [PATCH] more optimize? --- src/gui/effectList.cpp | 2 +- src/gui/guiConst.cpp | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/gui/effectList.cpp b/src/gui/effectList.cpp index 473b6b41e..45df6f2af 100644 --- a/src/gui/effectList.cpp +++ b/src/gui/effectList.cpp @@ -22,7 +22,7 @@ void FurnaceGUI::drawEffectList() { ImGui::Button(ICON_FA_BARS "##SortEffects"); if (ImGui::BeginPopupContextItem("effectSort",ImGuiPopupFlags_MouseButtonLeft)) { for (int i=1; i<10; i++) { - ImGui::PushStyleColor(ImGuiCol_Text,uiColors[fxColorsSort[i]]); + ImGui::PushStyleColor(ImGuiCol_Text,uiColors[i+GUI_COLOR_PATTERN_EFFECT_INVALID]); ImGui::Checkbox(fxColorsNames[i],&effectsShow[i]); ImGui::PopStyleColor(); } diff --git a/src/gui/guiConst.cpp b/src/gui/guiConst.cpp index 84cc58d0d..30bf33d20 100644 --- a/src/gui/guiConst.cpp +++ b/src/gui/guiConst.cpp @@ -217,19 +217,6 @@ const char* resampleStrats[]={ "best possible" }; -const FurnaceGUIColors fxColorsSort[]={ // used for sorting - GUI_COLOR_PATTERN_EFFECT_INVALID, - GUI_COLOR_PATTERN_EFFECT_PITCH, - GUI_COLOR_PATTERN_EFFECT_VOLUME, - GUI_COLOR_PATTERN_EFFECT_PANNING, - GUI_COLOR_PATTERN_EFFECT_SONG, - GUI_COLOR_PATTERN_EFFECT_TIME, - GUI_COLOR_PATTERN_EFFECT_SPEED, - GUI_COLOR_PATTERN_EFFECT_SYS_PRIMARY, - GUI_COLOR_PATTERN_EFFECT_SYS_SECONDARY, - GUI_COLOR_PATTERN_EFFECT_MISC -}; - const char* fxColorsNames[]={ "Invalid", "Pitch",