Skip to content

Commit

Permalink
Tweak bitmap API to match changes based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Sep 6, 2018
1 parent a0f88ee commit b030ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_imageload/bmp/indexed.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def load(f, width, height, data_start, colors, color_depth, *, bitmap=None, pale
while colors > 2 ** minimum_color_depth:
minimum_color_depth *= 2

bitmap = bitmap(width, height, minimum_color_depth)
bitmap = bitmap(width, height, colors)
f.seek(data_start)
line_size = width // (8 // color_depth)
if line_size % 4 != 0:
Expand Down

0 comments on commit b030ef7

Please sign in to comment.