From: Simon A. Eugster Date: Fri, 23 Jul 2010 07:16:13 +0000 (+0000) Subject: Levels: Display levels correctly for R,G,B (previously all showed R) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b1e10c28f7ac18ba747abce02af70f99022f419e;p=kdenlive Levels: Display levels correctly for R,G,B (previously all showed R) svn path=/trunk/kdenlive/; revision=4630 --- diff --git a/src/colorcorrection/levelsgenerator.cpp b/src/colorcorrection/levelsgenerator.cpp index 3f2c1b81..b2b4a91d 100644 --- a/src/colorcorrection/levelsgenerator.cpp +++ b/src/colorcorrection/levelsgenerator.cpp @@ -97,13 +97,13 @@ QImage LevelsGenerator::calculateLevels(const QSize ¶deSize, 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; }