fixed building on mac
This commit is contained in:
@@ -160,8 +160,8 @@ void MessageLayout::paint(QPainter &painter, int y, int messageIndex, Selection
|
||||
if (!pixmap) {
|
||||
#ifdef Q_OS_MACOS
|
||||
pixmap =
|
||||
new QPixmap((int)(this->container.getWidth() * painter.device()->devicePixelRatioF()),
|
||||
(int)(this->container.getHeight() * painter.device()->devicePixelRatioF()));
|
||||
new QPixmap(int(this->m_container.getWidth() * painter.device()->devicePixelRatioF()),
|
||||
int(this->m_container.getHeight() * painter.device()->devicePixelRatioF()));
|
||||
pixmap->setDevicePixelRatio(painter.device()->devicePixelRatioF());
|
||||
#else
|
||||
pixmap =
|
||||
|
||||
Reference in New Issue
Block a user