Skip to content

Commit

Permalink
Merge pull request #89 from shawn-mcgee/patch-1
Browse files Browse the repository at this point in the history
Fixed truecolor bmp not using provided bitmap constructor
  • Loading branch information
FoamyGuy authored Nov 7, 2024
2 parents 01cea42 + b164009 commit c1051f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_imageload/bmp/truecolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def load( # noqa: PLR0912, PLR0913, Too many branches, Too many arguments in fu

# convert unsigned int to signed int when height is negative
height = negative_height_check(height)
bitmap_obj = Bitmap(width, abs(height), 65535)
bitmap_obj = bitmap(width, abs(height), 65535)
file.seek(data_start)
line_size = width * (color_depth // 8)
# Set the seek direction based on whether the height value is negative or positive
Expand Down

0 comments on commit c1051f9

Please sign in to comment.