traverso-commit
[Top][All Lists]
Advanced

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

[Traverso-commit] traverso/src/sheetcanvas AudioClipView.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/sheetcanvas AudioClipView.cpp
Date: Thu, 12 Feb 2009 21:38:00 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       09/02/12 21:38:00

Modified files:
        src/sheetcanvas: AudioClipView.cpp 

Log message:
        * the workaround of painting 2 extra pixels, and the boundary checking 
no longer are needed it seems, please report if you get painting artifacts 
(vertical lines most likely in the wave painting when moving the playhead)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/AudioClipView.cpp?cvsroot=traverso&r1=1.14&r2=1.15

Patches:
Index: AudioClipView.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/AudioClipView.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- AudioClipView.cpp   6 Feb 2009 20:34:02 -0000       1.14
+++ AudioClipView.cpp   12 Feb 2009 21:38:00 -0000      1.15
@@ -223,23 +223,9 @@
 void AudioClipView::draw_peaks(QPainter* p, qreal xstart, int pixelcount)
 {
        PENTER2;
-       // when painting with a path, I _have_ to use path.lineTo()
-       // which looks ugly when only parts of the clip is repainted
-       // when using a different color for the brush then the outline.
-       // Painting 2 more pixels makes it getting clipped away.....
-       pixelcount += 2;
-       
-/*     xstart -= 2;
-       pixelcount += 2;
-       if (xstart < 0) xstart = 0;*/
-       
-       // boundary checking, important for microview only, macroview needs the 
additional
-       // pixels to paint the waveform correctly
-       if ((xstart + pixelcount) > m_boundingRect.width()) {
-               pixelcount = qRound(m_boundingRect.width() - xstart);
-       }
        
        Peak* peak = m_clip->get_peak();
+       
        if (!peak) {
                PERROR("No Peak object available for clip %s", 
QS_C(m_clip->get_name()));
                return;




reply via email to

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