Skip to content

Commit aa9ea8a

Browse files
committed
breaking-change: Remove canvasing from lower resolution (>32px) in Windows Cursor
Related to ful1e5/Bibata_Cursor#149
1 parent 486d9fb commit aa9ea8a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
### Important Changes
11+
12+
- Remove canvasing from lower resolution (>32px) in Windows Cursor
13+
1014
### Issue Fixes
1115

1216
- Fixed python string template in Windows uninstallation script, reported on: https://github.com/ful1e5/clickgen/commit/4fbf21b1d04755c9a6bd2b77b5b69f9ad1c1b56b.

src/clickgen/writer/windows.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,8 @@ def to_cur(frame: CursorFrame) -> bytes:
2929
if width > 256 or height > 256:
3030
raise ValueError(f"Image too big for CUR format: {width}x{height}")
3131

32-
# Place cursor image in 32x32 canvas if png is smaller.
33-
# Otherwise Cursors looks blurry
3432
blob = BytesIO()
35-
if width <= 32 or height <= 32:
36-
canvas = Image.new("RGBA", (32, 32), (0, 0, 0, 0))
37-
canvas.paste(clone, (0, 0))
38-
canvas.save(blob, "PNG")
39-
else:
40-
image.image.save(blob, "PNG")
33+
image.image.save(blob, "PNG")
4134

4235
blob.seek(0)
4336
image_data.append(blob.read())

0 commit comments

Comments
 (0)