mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-08-13 11:49:33 -04:00
13 lines
347 B
Python
13 lines
347 B
Python
from typing import List
|
|
|
|
from win2xcur.cursor import CursorFrame
|
|
|
|
|
|
def apply_to_frames(frames: List[CursorFrame], *, scale: float) -> None:
|
|
for frame in frames:
|
|
for cursor in frame:
|
|
cursor.scale(
|
|
int(round(cursor.image.width * scale)),
|
|
int(round(cursor.image.height) * scale),
|
|
)
|