Fixes #1312 pixelated scaling on kde

This commit is contained in:
fourtf 2019-10-06 20:30:14 +02:00
parent f89ca517ce
commit 4ab8a7e9dd

View file

@ -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()));