Skip to content

Commit 7713689

Browse files
committed
workaround still needed for all 4 bit or less images
1 parent 949ff2d commit 7713689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_imageload/png.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def load( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
110110
for y in range(height):
111111
dst = y * scanline
112112
src = y * (scanline + 1) + 1
113-
if width % 4 != 0:
113+
if depth < 5 or width % 4 != 0:
114114
# Work around the bugs in displayio.Bitmap
115115
# The first should have been resolved by #9479
116116
# https://github.com/adafruit/circuitpython/issues/6675

0 commit comments

Comments
 (0)