From b164009110884c26a2e5792dccaff5347ce45554 Mon Sep 17 00:00:00 2001 From: Shawn McGee Date: Sun, 3 Nov 2024 21:16:23 -0700 Subject: [PATCH] Fixed truecolor bmp not using provided bitmap constructor --- adafruit_imageload/bmp/truecolor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_imageload/bmp/truecolor.py b/adafruit_imageload/bmp/truecolor.py index 1e6dccd..fe4baac 100755 --- a/adafruit_imageload/bmp/truecolor.py +++ b/adafruit_imageload/bmp/truecolor.py @@ -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