From 6c239254063a337aa6c61a267cc54fcc30742a39 Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 26 Dec 2017 17:41:03 +0100 Subject: [PATCH] fixed render hints at wrong places --- src/widgets/helper/channelview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index 40ddb9e80..67ab9b5d3 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -426,8 +426,6 @@ void ChannelView::paintEvent(QPaintEvent * /*event*/) // BENCH(timer); QPainter painter(this); - painter.setRenderHint(QPainter::SmoothPixmapTransform); - // only update gif emotes #ifndef Q_OS_MAC // if (this->onlyUpdateEmotes) { @@ -451,6 +449,8 @@ void ChannelView::paintEvent(QPaintEvent * /*event*/) // draw messages this->drawMessages(painter); + painter.setRenderHint(QPainter::SmoothPixmapTransform); + // draw gif emotes for (GifEmoteData &item : this->gifEmotes) { // painter.fillRect(item.rect, this->colorScheme.ChatBackground); @@ -531,6 +531,8 @@ void ChannelView::updateMessageBuffer(messages::MessageRef *messageRef, QPixmap { QPainter painter(buffer); + painter.setRenderHint(QPainter::SmoothPixmapTransform); + // draw background // if (this->selectionMin.messageIndex <= messageIndex && // this->selectionMax.messageIndex >= messageIndex) {