mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
fix bdf drawing in other displays relying on display manager
This commit is contained in:
@@ -163,7 +163,7 @@ class DisplayManager:
|
|||||||
if byte & (1 << (7 - (j % 8))):
|
if byte & (1 << (7 - (j % 8))):
|
||||||
# Calculate actual pixel position
|
# Calculate actual pixel position
|
||||||
pixel_x = x + glyph_left + j
|
pixel_x = x + glyph_left + j
|
||||||
pixel_y = y + glyph_top - i
|
pixel_y = y - glyph_top + i
|
||||||
# Only draw if within bounds
|
# Only draw if within bounds
|
||||||
if (0 <= pixel_x < self.matrix.width and
|
if (0 <= pixel_x < self.matrix.width and
|
||||||
0 <= pixel_y < self.matrix.height):
|
0 <= pixel_y < self.matrix.height):
|
||||||
|
|||||||
Reference in New Issue
Block a user