flutter_desktop: fix local cursor (hotx,hoty) offset

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-09-08 21:05:26 -07:00
parent adafa38cfa
commit ef0980a9b1
2 changed files with 3 additions and 3 deletions

View File

@@ -599,8 +599,8 @@ class ImagePaint extends StatelessWidget {
return FlutterCustomMemoryImageCursor(
pixbuf: cacheLinux.data,
key: key,
hotx: cacheLinux.hotx,
hoty: cacheLinux.hoty,
hotx: 0.0,
hoty: 0.0,
imageWidth: (cacheLinux.width * scale).toInt(),
imageHeight: (cacheLinux.height * scale).toInt(),
);