fix(scale): Make scale work properly

This commit is contained in:
woshikedayaa 2024-12-18 22:09:38 +08:00
parent 8e71037f5f
commit beb30f2e95

View file

@ -10,3 +10,7 @@ def apply_to_frames(frames: List[CursorFrame], *, scale: float) -> None:
int(round(cursor.image.width * scale)), int(round(cursor.image.width * scale)),
int(round(cursor.image.height) * 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))