We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bc543 commit 9082160Copy full SHA for 9082160
adafruit_display_text/bitmap_label.py
@@ -27,6 +27,7 @@
27
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Display_Text.git"
28
29
import displayio
30
+import bitmaptools
31
from adafruit_display_text import LabelBase
32
33
try:
@@ -482,6 +483,18 @@ def _blit(
482
483
y2=y_2,
484
skip_index=skip_index,
485
)
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
+ )
498
499
else: # perform pixel by pixel copy of the bitmap
500
# Perform input checks
0 commit comments