From 2ae271c70404cd499ed85229aa5ac5bdc12b3389 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Tue, 30 Aug 2011 22:14:50 +0000 Subject: [PATCH] Fix previewing of affine transitions with transparent png svn path=/trunk/kdenlive/; revision=5847 --- src/renderer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer.cpp b/src/renderer.cpp index 66e16ecd..796fe40d 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -1473,13 +1473,13 @@ const QString & Render::rendererName() const void Render::emitFrameUpdated(Mlt::Frame& frame) { - mlt_image_format format = mlt_image_rgb24a; + mlt_image_format format = mlt_image_rgb24; int width = 0; 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.rgbSwapped()); + QImage qimage(width, height, QImage::Format_RGB888); + memcpy(qimage.bits(), image, width * height * 3); + emit frameUpdated(qimage); } void Render::emitFrameNumber(double position) -- 2.39.2