mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed compiling on macos
This commit is contained in:
parent
6b483640cd
commit
e047a55da8
|
@ -132,7 +132,7 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection
|
||||||
if (!pixmap) {
|
if (!pixmap) {
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
pixmap =
|
pixmap =
|
||||||
new QPixmap((int)(this->container.width * painter.device()->devicePixelRatioF()),
|
new QPixmap((int)(this->container.getWidth() * painter.device()->devicePixelRatioF()),
|
||||||
(int)(this->container.getHeight() * painter.device()->devicePixelRatioF()));
|
(int)(this->container.getHeight() * painter.device()->devicePixelRatioF()));
|
||||||
pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF());
|
pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF());
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue