From af6b78a0946ceb0d1a305892616c9ac848007027 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Wed, 23 Jul 2025 17:25:38 -0500 Subject: [PATCH] adjust float error --- src/stock_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stock_manager.py b/src/stock_manager.py index b7f1ee39..80a5365f 100644 --- a/src/stock_manager.py +++ b/src/stock_manager.py @@ -426,7 +426,7 @@ class StockManager: def _create_stock_display(self, symbol: str, price: float, change: float, change_percent: float, is_crypto: bool = False) -> Image.Image: """Create a display image for a stock or crypto with logo, symbol, price, and change.""" # Create a wider image for scrolling - adjust width based on chart toggle - width = self.display_manager.matrix.width * (2 if self.toggle_chart else 1.5) # Reduced width when no chart + width = int(self.display_manager.matrix.width * (2 if self.toggle_chart else 1.5)) # Reduced width when no chart height = self.display_manager.matrix.height image = Image.new('RGB', (width, height), color=(0, 0, 0)) draw = ImageDraw.Draw(image)