]> git.sesse.net Git - vlc/commitdiff
Qt4: user qpainter instead setpixel() in pictureflow
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 7 Nov 2010 19:35:08 +0000 (21:35 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 7 Nov 2010 19:35:08 +0000 (21:35 +0200)
modules/gui/qt4/util/pictureflow.cpp

index 749795d6c813d434411d0757bca9007bc1ba1b61..cd57539c199e28cf414000b296b4c69179b1c9dc 100644 (file)
@@ -522,7 +522,7 @@ static QImage* prepareSurface(const QImage* slideImage, int w, int h, QRgb bgcol
         for (int y = 0; y < h; y++)
             result->setPixel(hofs + y, x, img.pixel(x, y));
     */
-    imagePainter.drawImage( hofs+h, 0, result->transformed( rotation ) );
+    imagePainter.drawImage( hofs+h, 0, img );
     if (reflectionEffect != PictureFlow::NoReflection) {
         // create the reflection
         int ht = hs - h - hofs;
@@ -601,9 +601,12 @@ static QImage* prepareSurface(const QImage* slideImage, int w, int h, QRgb bgcol
             }
 
             // overdraw to leave only the reflection blurred (but not the actual image)
+            imagePainter.drawImage( hofs, 0, img.mirrored().transformed( rotation ) );
+            /*
             for (int x = 0; x < w; x++)
                 for (int y = 0; y < h; y++)
                     result->setPixel(hofs + y, x, img.pixel(x, y));
+            */
         }
     }