From: werner s. <wsc...@us...> - 2004-09-20 18:44:49
|
Update of /cvsroot/lmuse/muse/muse/arranger In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6010/arranger Modified Files: canvaswidget.cpp Log Message: fix midi part event drawing Index: canvaswidget.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/muse/arranger/canvaswidget.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** canvaswidget.cpp 20 Sep 2004 15:10:44 -0000 1.7 --- canvaswidget.cpp 20 Sep 2004 18:44:40 -0000 1.8 *************** *** 821,825 **** iEvent ito(events->end()); ! int th = r.height(); int from = r.x(); --- 821,825 ---- iEvent ito(events->end()); ! int th = height() - 2; int from = r.x(); *************** *** 861,865 **** x1 = from; int pitch = i->second.pitch(); ! int y = r.y() + th - (pitch * th / 127); p.drawLine(x1, y, x2, y); } --- 861,865 ---- x1 = from; int pitch = i->second.pitch(); ! int y = th - (pitch * th / 127); p.drawLine(x1, y, x2, y); } |