Use the optimal image format for the sprites
authorGunnar Sletta <gunnar.sletta@digia.com>
Fri, 1 Feb 2013 09:49:01 +0000 (10:49 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 2 Feb 2013 06:17:00 +0000 (07:17 +0100)
Change-Id: Ib6cfbc0e5c743d21c265fad926aac29a601f3b0a
Reviewed-by: Alan Alpert <aalpert@rim.com>

src/quick/items/qquickspriteengine.cpp

index 6dc4cf4..4c7be3b 100644 (file)
@@ -429,7 +429,7 @@ QImage QQuickSpriteEngine::assembledImage()
     }
 
     //maxFrames is max number in a line of the texture
-    QImage image(w, h, QImage::Format_ARGB32);
+    QImage image(w, h, QImage::Format_ARGB32_Premultiplied);
     image.fill(0);
     QPainter p(&image);
     int y = 0;