This commit is contained in:
tildearrow 2023-08-24 04:31:32 -05:00
parent 95b0b25011
commit cb0a8396c4

View file

@ -1767,12 +1767,12 @@ void FurnaceGUI::drawMacroEdit(FurnaceGUIMacroDesc& i, int totalFit, float avail
\
/* if ADSR/LFO, populate min/max */ \
if (i.macro->open&6) { \
if ((i.macro->val[0]==0) && (i.macro->val[1]==0)) { \
if (i.macro->val[0]==0 && i.macro->val[1]==0) { \
i.macro->val[0]=i.min; \
i.macro->val[1]=i.max; \
} \
i.macro->val[0]=(i.macro->val[0]<i.min ? i.min : (i.macro->val[0]>i.max ? i.max : i.macro->val[0])); \
i.macro->val[1]=(i.macro->val[1]<i.min ? i.min : (i.macro->val[1]>i.max ? i.max : i.macro->val[1])); \
i.macro->val[0]=CLAMP(i.macro->val[0],i.min,i.max); \
i.macro->val[1]=CLAMP(i.macro->val[1],i.min,i.max); \
} \
} \
PARAMETER; \