From cbc5f7b921dfe0318f429a9380d14a9e238798e2 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 25 Oct 2023 19:05:12 -0500 Subject: [PATCH] clamp x value to positive --- adafruit_display_text/bitmap_label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_display_text/bitmap_label.py b/adafruit_display_text/bitmap_label.py index 23b2d5b..5df2286 100755 --- a/adafruit_display_text/bitmap_label.py +++ b/adafruit_display_text/bitmap_label.py @@ -441,7 +441,7 @@ def _place_text( self._blit( bitmap, - xposition + my_glyph.dx, + max(xposition + my_glyph.dx, 0), y_blit_target, my_glyph.bitmap, x_1=glyph_offset_x,