We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0f88ee commit b030ef7Copy full SHA for b030ef7
1 file changed
adafruit_imageload/bmp/indexed.py
@@ -48,7 +48,7 @@ def load(f, width, height, data_start, colors, color_depth, *, bitmap=None, pale
48
while colors > 2 ** minimum_color_depth:
49
minimum_color_depth *= 2
50
51
- bitmap = bitmap(width, height, minimum_color_depth)
+ bitmap = bitmap(width, height, colors)
52
f.seek(data_start)
53
line_size = width // (8 // color_depth)
54
if line_size % 4 != 0:
0 commit comments