[vlmc-devel] commit: timeline: one more fix to avoid artifacts at full zoom level ( Ludovic Fauvet )

git at videolan.org git at videolan.org
Tue Mar 23 00:03:18 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Mar 22 23:57:47 2010 +0100| [ff02f68be9c4cb40c95719481d81da3dc4a47cef] | committer: Ludovic Fauvet 

timeline: one more fix to avoid artifacts at full zoom level

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ff02f68be9c4cb40c95719481d81da3dc4a47cef
---

 src/Gui/timeline/TracksView.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index a0293c6..e8ce936 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -742,9 +742,9 @@ TracksView::drawBackground( QPainter *painter, const QRectF &rect )
 
         QRectF trackRect = track->mapRectToScene( track->boundingRect() );
         if ( track->mediaType() == MainWorkflow::VideoTrack )
-            painter->drawLine( rect.left(), trackRect.top(), rect.right(), trackRect.top() );
+            painter->drawLine( rect.left(), trackRect.top(), rect.right() + 1, trackRect.top() );
         else
-            painter->drawLine( rect.left(), trackRect.bottom(), rect.right(), trackRect.bottom() );
+            painter->drawLine( rect.left(), trackRect.bottom(), rect.right() + 1, trackRect.bottom() );
     }
 
     // Audio/Video separator



More information about the Vlmc-devel mailing list