mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Removed redundant condition in drawing of voice chat indicator.
Related commit: 4a20a4d739
.
This commit is contained in:
@@ -391,14 +391,7 @@ void SpeakingAnimation::PaintFrame(
|
|||||||
|
|
||||||
const auto drawRoundedRect = [&](float left, float size) {
|
const auto drawRoundedRect = [&](float left, float size) {
|
||||||
const auto top = center.y() - size;
|
const auto top = center.y() - size;
|
||||||
const auto w = 2 * line;
|
p.drawRoundedRect(QRectF(left, top, 2 * line, 2 * size), line, 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);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
auto left = center.x() - 4 * line;
|
auto left = center.x() - 4 * line;
|
||||||
|
Reference in New Issue
Block a user