diff --git a/chatterino.pro b/chatterino.pro index ecb8cf4b2..0b752941c 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -247,6 +247,10 @@ win32 { } } +win32::exists(C:\fourtf) { + DEFINES += "OHHEYITSFOURTF" +} + macx { INCLUDEPATH += /usr/local/include } diff --git a/src/messages/layouts/messagelayout.cpp b/src/messages/layouts/messagelayout.cpp index 3ad347a77..ae41d5fe2 100644 --- a/src/messages/layouts/messagelayout.cpp +++ b/src/messages/layouts/messagelayout.cpp @@ -191,6 +191,7 @@ void MessageLayout::updateBuffer(QPixmap *buffer, int messageIndex, Selection &s // draw message this->container.paintElements(painter); +#ifdef OHHEYITSFOURTF // debug painter.setPen(QColor(255, 0, 0)); painter.drawRect(buffer->rect().x(), buffer->rect().y(), buffer->rect().width() - 1, @@ -201,6 +202,7 @@ void MessageLayout::updateBuffer(QPixmap *buffer, int messageIndex, Selection &s painter.drawText(QRectF(1, 1, this->container.width - 3, 1000), QString::number(++this->bufferUpdatedCount), option); +#endif } void MessageLayout::invalidateBuffer()