We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2caf187 commit e716587Copy full SHA for e716587
1 file changed
adafruit_imageload/bmp/indexed.py
@@ -86,7 +86,6 @@ def load(
86
range3 = 1
87
88
if compression == 0:
89
- chunk = bytearray(line_size)
90
91
if _bitmap_readinto:
92
_bitmap_readinto(
@@ -98,6 +97,7 @@ def load(
98
97
reverse_rows=True,
99
)
100
else: # use the standard file.readinto
+ chunk = bytearray(line_size)
101
for y in range(range1, range2, range3):
102
file.readinto(chunk)
103
pixels_per_byte = 8 // color_depth
0 commit comments