2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 05:37:45 +00:00

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;