mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-24 09:28:23 +00:00
scale remote cursor when view style is adaptive
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
b5fbc23cb9
commit
77ee60c8dc
1 changed files with 2 additions and 1 deletions
|
|
@ -635,7 +635,8 @@ class CursorPaint extends StatelessWidget {
|
|||
double x = (m.x - hotx) * c.scale + cx;
|
||||
double y = (m.y - hoty) * c.scale + cy;
|
||||
double scale = 1.0;
|
||||
if (zoomCursor.isTrue) {
|
||||
final isViewAdaptive = c.viewStyle.style == kRemoteViewStyleAdaptive;
|
||||
if (zoomCursor.isTrue && isViewAdaptive) {
|
||||
x = m.x - hotx + cx / c.scale;
|
||||
y = m.y - hoty + cy / c.scale;
|
||||
scale = c.scale;
|
||||
|
|
|
|||
Loading…
Reference in a new issue