We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f202f4e commit 608d8b8Copy full SHA for 608d8b8
1 file changed
lib/steami_screen/steami_screen/screen.py
@@ -48,10 +48,10 @@ class Screen:
48
CHAR_W = 8 # framebuf built-in font width
49
CHAR_H = 8 # framebuf built-in font height
50
51
- def __init__(self, display, width=128, height=128):
+ def __init__(self, display, width=None, height=None):
52
self._d = display
53
- self.width = width
54
- self.height = height
+ self.width = width or getattr(display, 'width', 128)
+ self.height = height or getattr(display, 'height', 128)
55
56
# --- Adaptive properties ---
57
0 commit comments