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); // BENCH(timer);
QPainter painter(this); QPainter painter(this);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
// only update gif emotes // only update gif emotes
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
// if (this->onlyUpdateEmotes) { // if (this->onlyUpdateEmotes) {
@ -451,6 +449,8 @@ void ChannelView::paintEvent(QPaintEvent * /*event*/)
// draw messages // draw messages
this->drawMessages(painter); this->drawMessages(painter);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
// draw gif emotes // draw gif emotes
for (GifEmoteData &item : this->gifEmotes) { for (GifEmoteData &item : this->gifEmotes) {
// painter.fillRect(item.rect, this->colorScheme.ChatBackground); // painter.fillRect(item.rect, this->colorScheme.ChatBackground);
@ -531,6 +531,8 @@ void ChannelView::updateMessageBuffer(messages::MessageRef *messageRef, QPixmap
{ {
QPainter painter(buffer); QPainter painter(buffer);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
// draw background // draw background
// if (this->selectionMin.messageIndex <= messageIndex && // if (this->selectionMin.messageIndex <= messageIndex &&
// this->selectionMax.messageIndex >= messageIndex) { // this->selectionMax.messageIndex >= messageIndex) {