traverso-commit
[Top][All Lists]
Advanced

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

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


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/sheetcanvas Cursors.cpp
Date: Mon, 29 Dec 2008 20:45:23 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/12/29 20:45:23

Modified files:
        src/sheetcanvas: Cursors.cpp 

Log message:
        * revert hack that was intended to reduce cpu load on animated scroll

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/sheetcanvas/Cursors.cpp?cvsroot=traverso&r1=1.4&r2=1.5

Patches:
Index: Cursors.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/sheetcanvas/Cursors.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- Cursors.cpp 23 Nov 2008 18:42:21 -0000      1.4
+++ Cursors.cpp 29 Dec 2008 20:45:20 -0000      1.5
@@ -203,15 +203,8 @@
        m_totalAnimValue += (int)(diff + deltaX);
        int newXPos = (int)(m_animationScrollStartPos + m_totalAnimValue);
        
-       // When moving the PlayHead and scrollbar at the same time, QGV may 
update a very large
-       // portion of the canvas. By forcing the playhead to be painted first 
by calling
-       // qApp->processEvents();(needs to be called twice to take effect, 
weird!)
-       // the canvas gets 2 paint events, one for the playhead move, and one 
for the scrollbar
-       // move, reducing the cpu load. Some sort of ugly hack that is ;-)
        if (newPos != pos()) {
                setPos(newPos);
-               qApp->processEvents();
-               qApp->processEvents();
        }
        
        if (m_sv->hscrollbar_value() != newXPos) {




reply via email to

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