mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
flutter_desktop: win scale cursor data
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -339,15 +339,15 @@ class ImagePaint extends StatelessWidget {
|
||||
if (cacheLinux == null) {
|
||||
return MouseCursor.defer;
|
||||
} else {
|
||||
final key = cacheLinux.key(scale);
|
||||
final key = cacheLinux.updateGetKey(scale);
|
||||
cursor.addKeyLinux(key);
|
||||
return FlutterCustomMemoryImageCursor(
|
||||
pixbuf: cacheLinux.data,
|
||||
key: key,
|
||||
hotx: cacheLinux.hotx,
|
||||
hoty: cacheLinux.hoty,
|
||||
imageWidth: (cacheLinux.width * scale).toInt(),
|
||||
imageHeight: (cacheLinux.height * scale).toInt(),
|
||||
imageWidth: (cacheLinux.width * cacheLinux.scale).toInt(),
|
||||
imageHeight: (cacheLinux.height * cacheLinux.scale).toInt(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user