Skip to content

Commit 949ff2d

Browse files
committed
remove portion of workaround for resolved bug
1 parent 204d8b0 commit 949ff2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_imageload/png.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ 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 depth < 8 or (depth == 8 and width % 4 != 0):
114-
# Work around the bug in displayio.Bitmap
113+
if width % 4 != 0:
114+
# Work around the bugs in displayio.Bitmap
115+
# The first should have been resolved by #9479
115116
# https://github.com/adafruit/circuitpython/issues/6675
117+
# https://github.com/adafruit/circuitpython/issues/9707
116118
pixels_per_byte = 8 // depth
117119
for x in range(0, width, pixels_per_byte):
118120
byte = data_bytes[src]

0 commit comments

Comments
 (0)