cursor pos linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-11-13 19:35:59 -08:00
parent a3afb03109
commit 60a30042c0
3 changed files with 17 additions and 14 deletions

View File

@@ -490,8 +490,8 @@ class CursorPaint extends StatelessWidget {
double hoty = m.hoty;
if (m.image == null) {
if (m.defaultCache != null) {
hotx = m.defaultCache!.hotx;
hoty = m.defaultCache!.hoty;
hotx = m.defaultImage!.width / 2;
hoty = m.defaultImage!.height / 2;
}
}
return CustomPaint(