[vlc-commits] commit: Qt4: user qpainter instead setpixel() in pictureflow ( Ilkka Ollakka )

git at videolan.org git at videolan.org
Sun Nov 7 20:35:49 CET 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Nov  7 21:35:08 2010 +0200| [6342ff56572b5409e03eb065fafba9f3e76cf1ab] | committer: Ilkka Ollakka 

Qt4: user qpainter instead setpixel() in pictureflow

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6342ff56572b5409e03eb065fafba9f3e76cf1ab
---

 modules/gui/qt4/util/pictureflow.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/util/pictureflow.cpp b/modules/gui/qt4/util/pictureflow.cpp
index 749795d..cd57539 100644
--- a/modules/gui/qt4/util/pictureflow.cpp
+++ b/modules/gui/qt4/util/pictureflow.cpp
@@ -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));
+            */
         }
     }
 



More information about the vlc-commits mailing list