[wayland] Switch to SurfaceInterface::bufferScale()
SurfaceInterface::scale() has been renamed to SurfaceInterface::bufferScale().
This commit is contained in:
parent
e1b5fc9fac
commit
ad73e13478
4 changed files with 6 additions and 6 deletions
|
@ -1692,7 +1692,7 @@ public:
|
|||
|
||||
QImage cursorImage;
|
||||
cursorImage = buffer->data().copy();
|
||||
cursorImage.setDevicePixelRatio(cursorSurface->scale());
|
||||
cursorImage.setDevicePixelRatio(cursorSurface->bufferScale());
|
||||
|
||||
cursor->updateCursor(cursorImage, tcursor->hotspot());
|
||||
});
|
||||
|
|
|
@ -1110,7 +1110,7 @@ void CursorImage::updateServerCursor()
|
|||
}
|
||||
m_serverCursor.cursor.hotspot = c->hotspot();
|
||||
m_serverCursor.cursor.image = buffer->data().copy();
|
||||
m_serverCursor.cursor.image.setDevicePixelRatio(cursorSurface->scale());
|
||||
m_serverCursor.cursor.image.setDevicePixelRatio(cursorSurface->bufferScale());
|
||||
if (needsEmit) {
|
||||
emit changed();
|
||||
}
|
||||
|
@ -1207,7 +1207,7 @@ void CursorImage::updateDragCursor()
|
|||
|
||||
if (additionalIcon.isNull()) {
|
||||
m_drag.cursor.image = buffer->data().copy();
|
||||
m_drag.cursor.image.setDevicePixelRatio(cursorSurface->scale());
|
||||
m_drag.cursor.image.setDevicePixelRatio(cursorSurface->bufferScale());
|
||||
} else {
|
||||
QRect cursorRect = buffer->data().rect();
|
||||
QRect iconRect = additionalIcon.rect();
|
||||
|
@ -1224,7 +1224,7 @@ void CursorImage::updateDragCursor()
|
|||
}
|
||||
|
||||
m_drag.cursor.image = QImage(cursorRect.united(iconRect).size(), QImage::Format_ARGB32_Premultiplied);
|
||||
m_drag.cursor.image.setDevicePixelRatio(cursorSurface->scale());
|
||||
m_drag.cursor.image.setDevicePixelRatio(cursorSurface->bufferScale());
|
||||
m_drag.cursor.image.fill(Qt::transparent);
|
||||
QPainter p(&m_drag.cursor.image);
|
||||
p.drawImage(iconRect, additionalIcon);
|
||||
|
|
|
@ -1259,7 +1259,7 @@ QPoint WindowPixmap::framePosition() const
|
|||
qreal WindowPixmap::scale() const
|
||||
{
|
||||
if (surface())
|
||||
return surface()->scale();
|
||||
return surface()->bufferScale();
|
||||
return toplevel()->bufferScale();
|
||||
}
|
||||
|
||||
|
|
|
@ -552,7 +552,7 @@ qreal Toplevel::screenScale() const
|
|||
|
||||
qreal Toplevel::bufferScale() const
|
||||
{
|
||||
return surface() ? surface()->scale() : 1;
|
||||
return surface() ? surface()->bufferScale() : 1;
|
||||
}
|
||||
|
||||
bool Toplevel::isOnScreen(int screen) const
|
||||
|
|
Loading…
Reference in a new issue