Screen is resizable (but please be nice with it)
This commit is contained in:
@ -10,6 +10,7 @@ class Display:
|
||||
y: int
|
||||
width: int
|
||||
height: int
|
||||
pad: Any
|
||||
|
||||
def __init__(self, screen: Any, pack: Optional[TexturePack] = None):
|
||||
self.screen = screen
|
||||
@ -23,6 +24,8 @@ class Display:
|
||||
self.y = y
|
||||
self.width = width
|
||||
self.height = height
|
||||
if self.pad:
|
||||
self.pad.resize(height - 1, width - 1)
|
||||
|
||||
def refresh(self, *args) -> None:
|
||||
if len(args) == 4:
|
||||
|
Reference in New Issue
Block a user