Added circle paint instead of blobs when animations are disabled.

This commit is contained in:
23rd 2020-11-30 10:23:12 +03:00 committed by John Preston
parent e2210274de
commit 1b2869d9c9

View file

@ -167,6 +167,14 @@ void BlobsWidget::init() {
Painter p(this);
PainterHighQualityEnabler hq(p);
if (anim::Disabled()) {
p.translate(_center, _center);
p.setPen(Qt::NoPen);
p.setBrush(_blobBrush);
p.drawEllipse(QPointF(), kMainMinRadius, kMainMinRadius);
return;
}
// Glow.
const auto s = kGlowMinScale
+ (1. - kGlowMinScale) * _blobs.currentLevel();