Removed redundant condition in drawing of voice chat indicator.

Related commit: 4a20a4d739.
This commit is contained in:
23rd 2020-12-04 01:48:57 +03:00
parent 190b1c9872
commit be9644c2ff

View file

@ -391,14 +391,7 @@ void SpeakingAnimation::PaintFrame(
const auto drawRoundedRect = [&](float left, float size) {
const auto top = center.y() - size;
const auto w = 2 * line;
const auto h = 2 * size;
if (left == (int)left) {
p.drawRoundedRect(left, top, w, h, line, line);
} else {
p.drawRoundedRect(QRectF(left, top, w, h), line, line);
}
p.drawRoundedRect(QRectF(left, top, 2 * line, 2 * size), line, line);
};
auto left = center.x() - 4 * line;