diff --git a/src/ui/UiConsole.py b/src/ui/UiConsole.py index 1834252..afca695 100644 --- a/src/ui/UiConsole.py +++ b/src/ui/UiConsole.py @@ -4,9 +4,9 @@ from src.ui.UiElement import UiElement class UiConsole(UiElement): - def __init__(self, rect, bgColor=(125, 125, 125)): + def __init__(self, rect: pygame.Rect, bgColor=(125, 125, 125)): super().__init__(rect) self.bgColor = bgColor - self.image = pygame.Surface(rect) + self.image = pygame.Surface((rect.width, rect.height)) self.image.fill(bgColor)