standlalone cutoff macro (with correct relative mode)

This commit is contained in:
LTVA1 2023-10-28 10:15:41 +03:00
parent 006f0d6f48
commit 0f760a365e
2 changed files with 22 additions and 0 deletions

View file

@ -6437,6 +6437,15 @@ void FurnaceGUI::drawInsEdit() {
}
if (ex1Max>0) {
if (ins->type==DIV_INS_C64) {
int cutoffmin = -64;
int cutoffmax = 64;
if (ins->c64.filterIsAbs) {
ins->std.algMacro.vZoom = -1;
cutoffmin = 0;
cutoffmax = 2047;
}
macroList.push_back(FurnaceGUIMacroDesc("Filter Cutoff", &ins->std.algMacro, cutoffmin, cutoffmax, 160, uiColors[GUI_COLOR_MACRO_OTHER]));
macroList.push_back(FurnaceGUIMacroDesc("Filter Mode",&ins->std.ex1Macro,0,ex1Max,64,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true,filtModeBits));
} else if (ins->type==DIV_INS_SAA1099) {
macroList.push_back(FurnaceGUIMacroDesc("Envelope",&ins->std.ex1Macro,0,ex1Max,160,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true,saaEnvBits));