Skip to content

Commit

Permalink
Convert Xcursor delays to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Mar 28, 2022
1 parent ee3249c commit fcf9681
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win2xcur/parser/xcursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _parse(self) -> List[CursorFrame]:

size, actual_type, nominal_size, version, width, height, x_offset, y_offset, delay = \
self._unpack(self.IMAGE_HEADER, position)
delay /= 1000

if size != self.IMAGE_HEADER.size:
raise ValueError(f'Unexpected size: {size}, expected {self.IMAGE_HEADER.size}')
Expand Down

0 comments on commit fcf9681

Please sign in to comment.