Merge pull request #2539 from WizardCM/clipping-visual-fix
UI: Don't clip meters when resizing with no input
This commit is contained in:
commit
2b06495d1b
@ -875,7 +875,7 @@ void VolumeMeter::paintHMeter(QPainter &painter, int x, int y, int width,
|
|||||||
painter.fillRect(peakPosition, y,
|
painter.fillRect(peakPosition, y,
|
||||||
maximumPosition - peakPosition, height,
|
maximumPosition - peakPosition, height,
|
||||||
backgroundErrorColor);
|
backgroundErrorColor);
|
||||||
} else {
|
} else if (int(magnitude) != 0) {
|
||||||
if (!clipping) {
|
if (!clipping) {
|
||||||
QTimer::singleShot(CLIP_FLASH_DURATION_MS, this,
|
QTimer::singleShot(CLIP_FLASH_DURATION_MS, this,
|
||||||
SLOT(ClipEnding()));
|
SLOT(ClipEnding()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user