fixed render hints at wrong places

This commit is contained in:
fourtf 2017-12-26 17:41:03 +01:00
parent 5df7651670
commit 6c23925406

View file

@ -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) {