From beb30f2e956bc8c6776ed0f92b2e9d9c4d3eddd5 Mon Sep 17 00:00:00 2001 From: woshikedayaa Date: Wed, 18 Dec 2024 22:09:38 +0800 Subject: [PATCH] fix(scale): Make scale work properly --- win2xcur/scale.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win2xcur/scale.py b/win2xcur/scale.py index b25793e..3b31887 100644 --- a/win2xcur/scale.py +++ b/win2xcur/scale.py @@ -10,3 +10,7 @@ def apply_to_frames(frames: List[CursorFrame], *, scale: float) -> None: int(round(cursor.image.width * scale)), int(round(cursor.image.height) * scale), ) + cursor.nominal = int(cursor.nominal * scale) + hx,hy = cursor.hotspot + cursor.hotspot = (int(hx * scale),int(hy*scale)) +