]> git.sesse.net Git - kdenlive/commitdiff
Fix drawing of transition
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 10 Mar 2008 12:14:26 +0000 (12:14 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 10 Mar 2008 12:14:26 +0000 (12:14 +0000)
svn path=/branches/KDE4/; revision=2037

src/clipitem.cpp

index d491deff004bc8d97074a53010cdc8234ec4b17c..f9c4b5f30dcf9dd5e29d76c0c8c687d80274e87d 100644 (file)
@@ -251,10 +251,10 @@ void ClipItem::paint(QPainter *painter,
         QPainterPath t;
         //t.addRect(br_startx,br.y()+br.height()/2,br.x() + /*t->transitionDuration().frames(m_fps) *pixelForOneFrame*/5 ,br.y()+br.height()*2);
         int twidth = br_startx + transition.transitionDuration().frames(m_fps) * scale;
-        t.moveTo(br_startx + twidth , br_endy);
-        t.lineTo(br_startx + twidth , br_halfy + roundingY);
+        t.moveTo(twidth , br_endy);
+        t.lineTo(twidth , br_halfy + roundingY);
 
-        t.arcTo(br_startx + twidth - roundingX , br_halfy , roundingX, roundingY,  0.0, 90.0);
+        t.arcTo(twidth - roundingX , br_halfy , roundingX, roundingY,  0.0, 90.0);
         t.lineTo(br_startx +  roundingX , br_halfy);
         t.arcTo(br_startx , br_halfy, roundingX , roundingY,  90.0, 90.0);
         t.lineTo(br_startx , br_endy);