mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed building on mac
This commit is contained in:
parent
5f76903849
commit
8ccd00a4d8
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ 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.getWidth() * painter.device()->devicePixelRatioF()),
|
new QPixmap(int(this->m_container.getWidth() * painter.device()->devicePixelRatioF()),
|
||||||
(int)(this->container.getHeight() * painter.device()->devicePixelRatioF()));
|
int(this->m_container.getHeight() * painter.device()->devicePixelRatioF()));
|
||||||
pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF());
|
pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF());
|
||||||
#else
|
#else
|
||||||
pixmap =
|
pixmap =
|
||||||
|
|
Loading…
Reference in a new issue