fix: add default y-coordinate in draw_text method

This commit is contained in:
ChuckBuilds
2025-04-23 14:58:01 -05:00
parent 5cfda2be9c
commit 3e5486d9b7

View File

@@ -254,6 +254,10 @@ class DisplayManager:
text_width = width
x = (self.matrix.width - text_width) // 2
# Set default y position if not provided
if y is None:
y = 0 # Default to top of display
# Draw the text
if isinstance(current_font, freetype.Face):
self._draw_bdf_text(text, x, y, color)