X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/cfee25c8ae316776ce54589eae64409ea41bc42b..86839449b3dff6550f8bcdb33f669b73990e6abb:/displayio/_bitmap.py diff --git a/displayio/_bitmap.py b/displayio/_bitmap.py index 07eb7af..7f92006 100644 --- a/displayio/_bitmap.py +++ b/displayio/_bitmap.py @@ -57,8 +57,8 @@ class Bitmap: the Bitmap. """ - if not 1 <= value_count <= 65535: - raise ValueError("value_count must be in the range of 1-65535") + if not 1 <= value_count <= 65536: + raise ValueError("value_count must be in the range of 1-65536") bits = 1 while (value_count - 1) >> bits: @@ -199,10 +199,6 @@ class Bitmap: elif bytes_per_value == 4: struct.pack_into(" None: """Fills the bitmap with the supplied palette index value.""" if self._read_only: