Commit e897258c authored by André Wöbbeking's avatar André Wöbbeking

QImage::convertToFormat() doesn't modify the image itself.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=640328
parent 07500b27
......@@ -640,9 +640,9 @@ static bool copyImage(QImage &dest, QImage &src, int x, int y)
// However, we do have to specifically ensure that setAlphaBuffer is set
// to false
large_src.convertToFormat(QImage::Format_RGB32); // Turn off alpha
large_src = large_src.convertToFormat(QImage::Format_RGB32); // Turn off alpha
large_src.fill(0); // All transparent pixels
large_src.convertToFormat(QImage::Format_ARGB32); // Turn on alpha
large_src = large_src.convertToFormat(QImage::Format_ARGB32); // Turn on alpha
int w = src.width();
int h = src.height();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment