mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 14:07:28 +08: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;
|
||||
if (kIgnoreDpi && style == kRemoteViewStyleOriginal) {
|
||||
if (kIgnoreDpi) {
|
||||
if (style == kRemoteViewStyleOriginal) {
|
||||
_scale = 1.0 / _devicePixelRatio;
|
||||
} else if (_scale != 0 && style == kRemoteViewStyleCustom) {
|
||||
_scale /= _devicePixelRatio;
|
||||
}
|
||||
}
|
||||
_resetCanvasOffset(displayWidth, displayHeight);
|
||||
final overflow = _x < 0 || y < 0;
|
||||
|
||||
Reference in New Issue
Block a user