From 3a3d9db890003f3e7148c64bd1202600a3806306 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 21 Oct 2025 19:28:02 -0500 Subject: [PATCH] GUI: remove partial pitch linearity option it still remains in the engine but will be removed after I update demo songs --- src/gui/compatFlags.cpp | 11 ----------- src/gui/exportOptions.cpp | 2 +- src/gui/sysConf.cpp | 4 ++-- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/gui/compatFlags.cpp b/src/gui/compatFlags.cpp index bd111f65e..57e690388 100644 --- a/src/gui/compatFlags.cpp +++ b/src/gui/compatFlags.cpp @@ -309,17 +309,6 @@ void FurnaceGUI::drawCompatFlags() { if (ImGui::IsItemHovered()) { ImGui::SetTooltip(_("like ProTracker/FamiTracker")); } - if (e->song.linearPitch==1) { - pushWarningColor(true); - if (ImGui::RadioButton(_("Partial (only 04xy/E5xx)"),e->song.linearPitch==1)) { - e->song.linearPitch=1; - MARK_MODIFIED; - } - if (ImGui::IsItemHovered()) { - ImGui::SetTooltip(_("like DefleMask\n\nthis pitch linearity mode is deprecated due to:\n- excessive complexity\n- lack of possible optimization\n\nit is recommended to change it now because I will remove this option in the future!")); - } - popWarningColor(); - } if (ImGui::RadioButton(_("Full"),e->song.linearPitch==2)) { e->song.linearPitch=2; MARK_MODIFIED; diff --git a/src/gui/exportOptions.cpp b/src/gui/exportOptions.cpp index 9e162282f..13f754051 100644 --- a/src/gui/exportOptions.cpp +++ b/src/gui/exportOptions.cpp @@ -540,7 +540,7 @@ void FurnaceGUI::drawExport() { ImGui::CloseCurrentPopup(); } if (ImGui::Button(_("Set pitch linearity to Partial"))) { - e->song.linearPitch=1; + showError(_("No!")); ImGui::CloseCurrentPopup(); } if (ImGui::Button(_("Set fat to max"))) { diff --git a/src/gui/sysConf.cpp b/src/gui/sysConf.cpp index 1469fbfc6..09d3a5ede 100644 --- a/src/gui/sysConf.cpp +++ b/src/gui/sysConf.cpp @@ -1321,11 +1321,11 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl if (ImGui::Checkbox(_("Amiga channel volumes (64)"),&amigaVol)) { altered=true; } - pushWarningColor(amigaPitch && e->song.linearPitch==2); + pushWarningColor(amigaPitch && e->song.linearPitch); if (ImGui::Checkbox(_("Amiga-like pitch (non-linear pitch only)"),&amigaPitch)) { altered=true; } - if (amigaPitch && e->song.linearPitch==2) { + if (amigaPitch && e->song.linearPitch) { if (ImGui::IsItemHovered()) { ImGui::SetTooltip("pitch linearity is set to linear. this won't do anything!"); }