mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed render hints at wrong places
This commit is contained in:
parent
5df7651670
commit
6c23925406
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue