Diffusion KWin 2cc42ecc1220

DRM cursor scaling

Authored by davidedmundson on Jun 23 2018, 5:14 PM.

Description

DRM cursor scaling

Summary:
We pass the buffer scale of the cursor through QImage::devicePixelRatio.

When copying the cursor with QPainter use Qt's in-built functionality to
handle resizing the cursor pixmap as necessary to match the screen.

As we're now resizing the cursor, the hotspot needs translating from
logical to device co-ordinates.

Test Plan: Used with associated patches

Reviewers: KWin, graesslin

Reviewed By: KWin, graesslin

Subscribers: graesslin, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D13605

Details

Committed
davidedmundsonJun 23 2018, 5:15 PM
Reviewer
KWin
Differential Revision
D13605: DRM cursor scaling
Parents
R108:9ff1f77e8eda: Support cursor scaling in X windowed backend
Branches
Unknown
Tags
Unknown