Skip to content

Commit c1051f9

Browse files
authored
Merge pull request #89 from shawn-mcgee/patch-1
Fixed truecolor bmp not using provided bitmap constructor
2 parents 01cea42 + b164009 commit c1051f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_imageload/bmp/truecolor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def load( # noqa: PLR0912, PLR0913, Too many branches, Too many arguments in fu
9494

9595
# convert unsigned int to signed int when height is negative
9696
height = negative_height_check(height)
97-
bitmap_obj = Bitmap(width, abs(height), 65535)
97+
bitmap_obj = bitmap(width, abs(height), 65535)
9898
file.seek(data_start)
9999
line_size = width * (color_depth // 8)
100100
# Set the seek direction based on whether the height value is negative or positive

0 commit comments

Comments
 (0)