Skip to content

Commit b030ef7

Browse files
committed
Tweak bitmap API to match changes based on review feedback
1 parent a0f88ee commit b030ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_imageload/bmp/indexed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def load(f, width, height, data_start, colors, color_depth, *, bitmap=None, pale
4848
while colors > 2 ** minimum_color_depth:
4949
minimum_color_depth *= 2
5050

51-
bitmap = bitmap(width, height, minimum_color_depth)
51+
bitmap = bitmap(width, height, colors)
5252
f.seek(data_start)
5353
line_size = width // (8 // color_depth)
5454
if line_size % 4 != 0:

0 commit comments

Comments
 (0)