Fix HDAudio Synth.ZC enough to compile.

This commit is contained in:
TomAwezome 2022-12-24 19:43:10 -05:00
parent 55d95ee3d3
commit 8200205781

View file

@ -104,30 +104,38 @@ U0 DrawIt(CTask *task,CDC *dc)
Line(NULL, Line(NULL,
(last_x-task->pix_left-task->scroll_x)*WF_BUF_LEN/h_max, (last_x-task->pix_left-task->scroll_x)*WF_BUF_LEN/h_max,
WF_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0, WF_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0,
( msx-task->pix_left-task->scroll_x)*WF_BUF_LEN/h_max, // ( msx-task->pix_left-task->scroll_x)*WF_BUF_LEN/h_max,
WF_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0, ( mouse.pos.x-task->pix_left-task->scroll_x)*WF_BUF_LEN/h_max,
// WF_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0,
WF_Y_SCALE*(cy-mouse.pos.y+task->pix_top+task->scroll_y)/cy,0,
&WFPlot); &WFPlot);
break; break;
case M_FREQUENCY: case M_FREQUENCY:
Line(NULL, Line(NULL,
(last_x-task->pix_left-task->scroll_x)*FQ_BUF_LEN/h_max, (last_x-task->pix_left-task->scroll_x)*FQ_BUF_LEN/h_max,
FQ_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0, FQ_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0,
( msx-task->pix_left-task->scroll_x)*FQ_BUF_LEN/h_max, // ( msx-task->pix_left-task->scroll_x)*FQ_BUF_LEN/h_max,
FQ_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0, ( mouse.pos.x-task->pix_left-task->scroll_x)*FQ_BUF_LEN/h_max,
// FQ_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0,
FQ_Y_SCALE*(cy-mouse.pos.y+task->pix_top+task->scroll_y)/cy,0,
&FQPlot); &FQPlot);
break; break;
case M_ENVELOPE: case M_ENVELOPE:
Line(NULL, Line(NULL,
(last_x-task->pix_left-task->scroll_x)*EL_BUF_LEN/h_max, (last_x-task->pix_left-task->scroll_x)*EL_BUF_LEN/h_max,
EL_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0, EL_Y_SCALE*(cy-last_y+task->pix_top+task->scroll_y)/cy,0,
( msx-task->pix_left-task->scroll_x)*EL_BUF_LEN/h_max, // ( msx-task->pix_left-task->scroll_x)*EL_BUF_LEN/h_max,
EL_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0, ( mouse.pos.x-task->pix_left-task->scroll_x)*EL_BUF_LEN/h_max,
// EL_Y_SCALE*(cy-msy+task->pix_top+task->scroll_y)/cy,0,
EL_Y_SCALE*(cy-mouse.pos.y+task->pix_top+task->scroll_y)/cy,0,
&ELPlot); &ELPlot);
break; break;
} }
my_ms_down=TRUE; my_ms_down=TRUE;
last_x=msx; // last_x=msx;
last_y=msy; // last_y=msy;
last_x=mouse.pos.x;
last_y=mouse.pos.y;
} else } else
my_ms_down=FALSE; my_ms_down=FALSE;
} }