Skip to content

Commit 296bacd

Browse files
committed
Use work around for <8 depth for now
1 parent dde5d39 commit 296bacd

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
@@ -112,7 +112,7 @@ def load( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
112112
filladj = y * ((4 - (width % 4)) % 4)
113113
dst = y * scanline + filladj
114114
src = y * (scanline + 1) + 1
115-
if depth < 5:
115+
if depth < 8:
116116
# Work around the bugs in displayio.Bitmap
117117
# The first should have been resolved by #9479
118118
# https://github.com/adafruit/circuitpython/issues/6675

0 commit comments

Comments
 (0)