]> git.sesse.net Git - mlt/commitdiff
clean image before painting
authorMarco Gittler <g.marco@freenet.de>
Mon, 20 Jul 2009 10:16:13 +0000 (12:16 +0200)
committerMarco Gittler <g.marco@freenet.de>
Mon, 20 Jul 2009 10:16:13 +0000 (12:16 +0200)
src/modules/qimage/kdenlivetitle_wrapper.cpp

index ac17c574154c69b2bdf24d79fd28758ba4937632..0434c05f37476db66b532202058bf50bfb486377 100644 (file)
@@ -61,6 +61,7 @@ void Title::drawKdenliveTitle(uint8_t * buffer ,int width,int height,double posi
     //must be extracted from kdenlive title
     
     QImage *img=new QImage(width,height,QImage::Format_ARGB32);
+    img->fill(0);
     QRectF rstart=start->boundingRect();
     QRectF rend=end->boundingRect();
     QPointF topleft=rstart.topLeft()+(rend.topLeft()-rstart.topLeft())*position;