Skip to content

Commit 66fa04d

Browse files
committed
Move workaround comment to top of workaround
1 parent d22ccf5 commit 66fa04d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_imageload/png.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def load( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
115115
if (
116116
(implementation[1][0] == 9 and implementation[1][1] < 2) or implementation[1][0] < 9
117117
) and (depth < 8 or width % 4 != 0):
118+
# Work around the bug in displayio.Bitmap
119+
# remove once CircuitPython 9.1 is no longer supported
120+
# https://github.com/adafruit/circuitpython/issues/6675
121+
# https://github.com/adafruit/circuitpython/issues/9707
118122
src_b = 1
119123
for y in range(height):
120-
# Work around the bug in displayio.Bitmap
121-
# remove once CircuitPython 9.1 is no longer supported
122-
# https://github.com/adafruit/circuitpython/issues/6675
123-
# https://github.com/adafruit/circuitpython/issues/9707
124124
for x in range(0, width, pixels_per_byte):
125125
byte = data_bytes[src_b]
126126
for pixel in range(pixels_per_byte):

0 commit comments

Comments
 (0)