Skip to content
Commit 8c7457b8 authored by Alexander Volkov's avatar Alexander Volkov Committed by Alexander Volkov
Browse files

Add highdpi support for RDP and VNC

Summary:
In highdpi mode coordinates are specified in device independent pixels,
and Qt auto-scales everything by devicePixelRatio, i.e. the ratio between
the device independent and device pixel coordinate systems.

Thus for RDP we should pass the size in device pixels to xfreerdp.

For VNC we should avoid auto-scaling, which can be done by setting
devicePixelRatio of the paint device for the painted image, and
the size of the image should be converted to device independent
pixels where it's needed.

Reviewers: #kde_applications, davidedmundson, uwolfer, ahmadsamir, murrant, cfeck, ngraham

Reviewed By: murrant

Subscribers: yuyichao, ngraham, alexeymin, aacid

Differential Revision: https://phabricator.kde.org/D20790
parent 34080176
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment