diff --git a/src/messages/layouts/MessageLayout.cpp b/src/messages/layouts/MessageLayout.cpp index 07b7c79d..bf71c0f8 100644 --- a/src/messages/layouts/MessageLayout.cpp +++ b/src/messages/layouts/MessageLayout.cpp @@ -158,7 +158,7 @@ void MessageLayout::paint(QPainter &painter, int width, int y, int messageIndex, // create new buffer if required if (!pixmap) { -#ifdef Q_OS_MACOS +#if defined(Q_OS_MACOS) || defined(Q_OS_LINUX) pixmap = new QPixmap(int(width * painter.device()->devicePixelRatioF()), int(container_->getHeight() * painter.device()->devicePixelRatioF()));