mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 14:41:28 +03:00
@@ -866,15 +866,15 @@ 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(
|
||||
painter: ImagePainter(
|
||||
image: m.image ?? m.defaultImage,
|
||||
x: m.x * s - hotx + c.x,
|
||||
y: m.y * s - hoty + c.y - adjust,
|
||||
x: m.x * s - hotx * s + c.x,
|
||||
y: m.y * s - hoty * s + c.y - adjust,
|
||||
scale: 1),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user