]> git.sesse.net Git - kdenlive/commitdiff
Fix RGBA to ARGB conversion for scopes.
authorDan Dennedy <dan@dennedy.org>
Mon, 9 Aug 2010 23:18:07 +0000 (23:18 +0000)
committerDan Dennedy <dan@dennedy.org>
Mon, 9 Aug 2010 23:18:07 +0000 (23:18 +0000)
svn path=/trunk/kdenlive/; revision=4695

src/renderer.cpp

index 3f5cf863224c1253c687c94ddcd52728f02c0c6d..07c2e98cea472828661ed3ec5ef02edfffdc1224 100644 (file)
@@ -1447,8 +1447,8 @@ void Render::emitFrameUpdated(Mlt::Frame& frame)
     int height = 0;
     const uchar* image = frame.get_image(format, width, height);
     QImage qimage(width, height, QImage::Format_ARGB32);
-       memcpy(qimage.bits(), image, width * height * 4);
-       emit frameUpdated(qimage);
+    memcpy(qimage.bits(), image, width * height * 4);
+    emit frameUpdated(qimage.rgbSwapped());
 }
 
 void Render::emitFrameNumber(double position)