]> git.sesse.net Git - kdenlive/commitdiff
Levels: Display levels correctly for R,G,B (previously all showed R)
authorSimon A. Eugster <simon.eu@gmail.com>
Fri, 23 Jul 2010 07:16:13 +0000 (07:16 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Fri, 23 Jul 2010 07:16:13 +0000 (07:16 +0000)
svn path=/trunk/kdenlive/; revision=4630

src/colorcorrection/levelsgenerator.cpp

index 3f2c1b81794cc105824b8403b810bd4c9b5efa1e..b2b4a91d6144f8a8edb156f152f429f7988cc30f 100644 (file)
@@ -97,13 +97,13 @@ QImage LevelsGenerator::calculateLevels(const QSize &paradeSize, const QImage &i
 
     if (drawG) {
         qDebug() << "Drawing G at " << wy << " with height " << partH;
-        drawComponentFull(&davinci, r, scaling, QRect(0, wy, ww, partH + dist), QColor(128, 255, 0, 255), dist, unscaled);
+        drawComponentFull(&davinci, g, scaling, QRect(0, wy, ww, partH + dist), QColor(128, 255, 0, 255), dist, unscaled);
         wy += partH + d;
     }
 
     if (drawB) {
         qDebug() << "Drawing B at " << wy << " with height " << partH;
-        drawComponentFull(&davinci, r, scaling, QRect(0, wy, ww, partH + dist), QColor(0, 128, 255, 255), dist, unscaled);
+        drawComponentFull(&davinci, b, scaling, QRect(0, wy, ww, partH + dist), QColor(0, 128, 255, 255), dist, unscaled);
 
         wy += partH + d;
     }