mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-07 20:30:08 +03:00
fix: custom scale, dpi (#13197)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1927,8 +1927,12 @@ class CanvasModel with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_devicePixelRatio = ui.window.devicePixelRatio;
|
_devicePixelRatio = ui.window.devicePixelRatio;
|
||||||
if (kIgnoreDpi && style == kRemoteViewStyleOriginal) {
|
if (kIgnoreDpi) {
|
||||||
_scale = 1.0 / _devicePixelRatio;
|
if (style == kRemoteViewStyleOriginal) {
|
||||||
|
_scale = 1.0 / _devicePixelRatio;
|
||||||
|
} else if (_scale != 0 && style == kRemoteViewStyleCustom) {
|
||||||
|
_scale /= _devicePixelRatio;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_resetCanvasOffset(displayWidth, displayHeight);
|
_resetCanvasOffset(displayWidth, displayHeight);
|
||||||
final overflow = _x < 0 || y < 0;
|
final overflow = _x < 0 || y < 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user