]> git.sesse.net Git - kdenlive/blobdiff - src/colorcorrection/levelsgenerator.cpp
Levels: Display levels correctly for R,G,B (previously all showed R)
[kdenlive] / 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;
     }