Skip to content

Commit bc70c46

Browse files
committed
dont create a background bitmap if background_color is None
1 parent dd13c49 commit bc70c46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_display_text/label.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def _update_text(
292292
self._text = new_text
293293
self._boundingbox = (left, top, left + right, bottom - top)
294294

295-
self._update_background_color(self._background_color)
295+
if self.background_color:
296+
self._update_background_color(self._background_color)
296297

297298
@property
298299
def bounding_box(self):

0 commit comments

Comments
 (0)