GUI: prepare for sample select/draw

This commit is contained in:
tildearrow 2022-03-19 16:14:11 -05:00
parent 689ed3bf65
commit 67ca88b478
2 changed files with 9 additions and 2 deletions

View file

@ -7104,7 +7104,11 @@ FurnaceGUI::FurnaceGUI():
sampleSelStart(-1), sampleSelStart(-1),
sampleSelEnd(-1), sampleSelEnd(-1),
sampleDragActive(false), sampleDragActive(false),
sampleDragMode(false) { sampleDragMode(false),
sampleDrag16(false),
sampleDragTarget(NULL),
sampleDragStart(0,0),
sampleDragAreaSize(0,0) {
// octave 1 // octave 1
/* /*

View file

@ -743,7 +743,10 @@ class FurnaceGUI {
int resampleStrat; int resampleStrat;
float amplifyVol; float amplifyVol;
int sampleSelStart, sampleSelEnd; int sampleSelStart, sampleSelEnd;
bool sampleDragActive, sampleDragMode; bool sampleDragActive, sampleDragMode, sampleDrag16;
void* sampleDragTarget;
ImVec2 sampleDragStart;
ImVec2 sampleDragAreaSize;
// visualizer // visualizer
float keyHit[DIV_MAX_CHANS]; float keyHit[DIV_MAX_CHANS];