Client: Use QPlatformWindow's DPR for fallback cursor scale and ceil it
This should provide a crisper cursor than flooring and QPlatformWindow is a more right choice than QWindow. Change-Id: I4d0a50e7e513b632532f8561fe709428599fab2c Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
538e3f7421
commit
ab9d58cd42
@ -317,7 +317,7 @@ void QWaylandCursor::changeCursor(QCursor *cursor, QWindow *window)
|
||||
if (cursor && cursor->shape() == Qt::BitmapCursor)
|
||||
bitmapBuffer = cursorBitmapBuffer(mDisplay, cursor);
|
||||
|
||||
int fallbackOutputScale = int(window->devicePixelRatio());
|
||||
int fallbackOutputScale = qCeil(window->handle()->devicePixelRatio());
|
||||
const auto seats = mDisplay->inputDevices();
|
||||
for (auto *seat : seats)
|
||||
seat->setCursor(cursor, bitmapBuffer, fallbackOutputScale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user