mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
update height references
This commit is contained in:
@@ -315,6 +315,9 @@ class LeaderboardManager:
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# Get display height first
|
||||||
|
height = self.display_manager.matrix.height
|
||||||
|
|
||||||
# Calculate total width needed
|
# Calculate total width needed
|
||||||
total_width = 0
|
total_width = 0
|
||||||
spacing = 40 # Spacing between leagues
|
spacing = 40 # Spacing between leagues
|
||||||
@@ -352,7 +355,6 @@ class LeaderboardManager:
|
|||||||
total_width += league_width + spacing
|
total_width += league_width + spacing
|
||||||
|
|
||||||
# Create the main image
|
# Create the main image
|
||||||
height = self.display_manager.matrix.height
|
|
||||||
self.leaderboard_image = Image.new('RGB', (total_width, height), (0, 0, 0))
|
self.leaderboard_image = Image.new('RGB', (total_width, height), (0, 0, 0))
|
||||||
draw = ImageDraw.Draw(self.leaderboard_image)
|
draw = ImageDraw.Draw(self.leaderboard_image)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user