mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Removed redundant condition in drawing of voice chat indicator.
Related commit: 4a20a4d739
.
This commit is contained in:
parent
190b1c9872
commit
be9644c2ff
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue