From e35ae165dd7096942e9641dfd9c6d6fc2a89f1c7 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Thu, 5 May 2011 22:55:49 +0000 Subject: Fixed regression: Plugins would not restore saved control state when loading song. --- muse2/muse/arranger/pcanvas.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'muse2/muse/arranger/pcanvas.cpp') diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index c76e4421..35de93ee 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -3152,8 +3152,7 @@ void PartCanvas::drawAutomation(QPainter& p, const QRect& r, AudioTrack *t) ic++; int prevPosFrame=cvFirst.frame; prevVal = cvFirst.val; - - + ///bool discrete = cl->valueType() == VAL_BOOL || cl->mode() == CtrlList::DISCRETE; // Tim // prepare prevVal if (cl->valueType() == VAL_LOG ) { // use db scale for volume @@ -3195,7 +3194,12 @@ void PartCanvas::drawAutomation(QPainter& p, const QRect& r, AudioTrack *t) p.drawLine( leftX, (rr.bottom()-2)-prevVal*height, currentPixel, - (rr.bottom()-2)-nextVal*height); + (rr.bottom()-2)-nextVal*height); + ///(rr.bottom()-2)- (discrete?prevVal:nextVal)*height); // Tim + + ///if(discrete) + /// p.drawLine( currentPixel, (rr.bottom()-2)-prevVal*height, currentPixel, (rr.bottom()-2)-nextVal*height ); // Tim + firstRun=false; //printf("draw line: %d %f %d %f\n",tempomap.frame2tick(lastPos),rr.bottom()-lastVal*height,tempomap.frame2tick(cv.frame),rr.bottom()-curVal*height); prevPosFrame=cv.frame; -- cgit v1.2.3