mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixes #1312 pixelated scaling on kde
This commit is contained in:
parent
f89ca517ce
commit
4ab8a7e9dd
|
@ -158,7 +158,7 @@ void MessageLayout::paint(QPainter &painter, int width, int y, int messageIndex,
|
||||||
// create new buffer if required
|
// create new buffer if required
|
||||||
if (!pixmap)
|
if (!pixmap)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MACOS
|
#if defined(Q_OS_MACOS) || defined(Q_OS_LINUX)
|
||||||
pixmap = new QPixmap(int(width * painter.device()->devicePixelRatioF()),
|
pixmap = new QPixmap(int(width * painter.device()->devicePixelRatioF()),
|
||||||
int(container_->getHeight() *
|
int(container_->getHeight() *
|
||||||
painter.device()->devicePixelRatioF()));
|
painter.device()->devicePixelRatioF()));
|
||||||
|
|
Loading…
Reference in a new issue