From e36fac135772f751778ad29674c7a8172ea9610f Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 25 Apr 2025 11:08:23 -0500 Subject: [PATCH] fix: Ensure BDF font text is visible by setting correct draw object and updating display --- src/mlb_manager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index 26423d49..f334a529 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -137,7 +137,11 @@ class BaseMLBManager: status_width = self.display_manager.get_text_width(status_text, self.display_manager.calendar_font) status_x = (width - status_width) // 2 status_y = 2 + # Draw on the current image + self.display_manager.draw = draw self.display_manager._draw_bdf_text(status_text, status_x, status_y, color=(255, 255, 255), font=self.display_manager.calendar_font) + # Update the display + self.display_manager.update_display() # Format game date and time game_time = datetime.fromisoformat(game_data['start_time'].replace('Z', '+00:00')) @@ -167,7 +171,11 @@ class BaseMLBManager: status_width = self.display_manager.get_text_width(status_text, self.display_manager.calendar_font) status_x = (width - status_width) // 2 status_y = 2 + # Draw on the current image + self.display_manager.draw = draw self.display_manager._draw_bdf_text(status_text, status_x, status_y, color=(255, 255, 255), font=self.display_manager.calendar_font) + # Update the display + self.display_manager.update_display() # Draw scores at the bottom (matching NHL layout) using PressStart2P away_score = str(game_data['away_score'])