traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/traverso/songcanvas CurveView.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/traverso/songcanvas CurveView.cpp
Date: Thu, 26 Apr 2007 14:48:25 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/04/26 14:48:25

Modified files:
        src/traverso/songcanvas: CurveView.cpp 

Log message:
        * something is wrong when painting the last node, as a 'fix' populate 
the curve 
        with as many nodes as there are pixels..... Requires a bit more cpu 
though.. 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/songcanvas/CurveView.cpp?cvsroot=traverso&r1=1.40&r2=1.41

Patches:
Index: CurveView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/songcanvas/CurveView.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- CurveView.cpp       26 Apr 2007 13:46:42 -0000      1.40
+++ CurveView.cpp       26 Apr 2007 14:48:25 -0000      1.41
@@ -253,12 +253,9 @@
                                vector,
                                pixelcount);
        
-       for (int i=0; i<pixelcount; i+=3) {
+       for (int i=0; i<pixelcount; i++) {
                polygon <<  QPointF(xstart + i, height - (vector[i] * height) );
        }
-       // We could miss the last one since we skip 3 pixels at a time.
-       // so, always add the last one!
-       polygon <<  QPointF(xstart + pixelcount, height - (vector[pixelcount-1] 
* height) );
        
        // Depending on the zoom level, curve nodes can end up to be aligned 
        // vertically at the exact same x position. The curve line won't be 
painted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]