mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
fix(scale): Make scale work properly
This commit is contained in:
parent
8e71037f5f
commit
beb30f2e95
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue