X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/e46cbbe709e52c0a1ce5bd8107440ec78919bc6c..a0f10b55a919620936e1f697ae7e674f29d296dc:/displayio/_displaycore.py diff --git a/displayio/_displaycore.py b/displayio/_displaycore.py index fd42b4d..42218ec 100644 --- a/displayio/_displaycore.py +++ b/displayio/_displaycore.py @@ -254,7 +254,8 @@ class _DisplayCore: if not overlaps: return False - # Expand the area if we have multiple pixels per byte and we need to byte align the bounds + # Expand the area if we have multiple pixels per byte and we need to byte + # align the bounds if self.colorspace.depth < 8: pixels_per_byte = ( 8 // self.colorspace.depth * self.colorspace.bytes_per_cell