From e9c5f181420ff1775a469985b37d8f518c0fe1ea Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 1 Jun 2015 14:21:41 +0300 Subject: [PATCH] fixed circle, final 0.8.18.dev-2 --- Telegram/SourceFiles/historywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index fdba9d0e24..475e06911e 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -4411,7 +4411,7 @@ void HistoryWidget::paintEvent(QPaintEvent *e) { p.setBrush(st::recordSignalColor->b); p.setRenderHint(QPainter::HighQualityAntialiasing); float64 delta = qMin(float64(a_recordingLevel.current()) * 3 * M_PI / 0x7fff, 1.); - int32 d = 2 * (st::recordSignalMin + (delta * (st::recordSignalMax - st::recordSignalMin))); + int32 d = 2 * qRound(st::recordSignalMin + (delta * (st::recordSignalMax - st::recordSignalMin))); p.drawEllipse(_attachPhoto.x() + (_attachEmoji.width() - d) / 2, _attachPhoto.y() + (_attachPhoto.height() - d) / 2, d, d); p.setRenderHint(QPainter::HighQualityAntialiasing, false);