1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 18:58:55 +01:00

Fixed some RGB parameters out of range warnings

This commit is contained in:
David Sansome 2010-03-21 17:28:54 +00:00
parent d09eaac67a
commit 24541609d7

View File

@ -54,7 +54,10 @@ BoomAnalyzer::init()
{
const double F = (double)y * h;
p.setPen( QColor( 255 - int(229.0 * F), 255 - int(229.0 * F), 255 - int(191.0 * F) ) );
p.setPen(QColor(
qMax(0, 255 - int(229.0 * F)),
qMax(0, 255 - int(229.0 * F)),
qMax(0, 255 - int(191.0 * F))));
p.drawLine( 0, y, COLUMN_WIDTH-2, y );
}
}