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:
parent
d09eaac67a
commit
24541609d7
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user