Skip to content

Commit 9082160

Browse files
committed
bitmaptools.blit refactor support
1 parent c8bc543 commit 9082160

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

adafruit_display_text/bitmap_label.py

+13
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Display_Text.git"
2828

2929
import displayio
30+
import bitmaptools
3031
from adafruit_display_text import LabelBase
3132

3233
try:
@@ -482,6 +483,18 @@ def _blit(
482483
y2=y_2,
483484
skip_index=skip_index,
484485
)
486+
elif hasattr(bitmaptools, "blit"):
487+
bitmaptools.blit(
488+
bitmap,
489+
source_bitmap,
490+
x,
491+
y,
492+
x1=x_1,
493+
y1=y_1,
494+
x2=x_2,
495+
y2=y_2,
496+
skip_source_index=skip_index,
497+
)
485498

486499
else: # perform pixel by pixel copy of the bitmap
487500
# Perform input checks

0 commit comments

Comments
 (0)