Skip to content

Commit

Permalink
fix: unpass fullscreen argument
Browse files Browse the repository at this point in the history
  • Loading branch information
u8slvn committed Aug 30, 2024
1 parent 3498592 commit cf18d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/doggo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def run() -> None:
Initialize the pygame and start the world.
"""
# Check if the app should run in fullscreen mode.
# Fu
fullscreen = os.getenv("DOGGO_FULLSCREEN", "False").lower() in ("1", "true")

pg.init()
Expand Down
3 changes: 2 additions & 1 deletion src/doggo/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ def __init__(
size=size,
borderless=True,
always_on_top=True,
fullscreen=fullscreen,
)
self.window_surf: pg.Surface = self.window.get_surface()
self.screen: pg.Surface = pg.Surface(size=size)
self.window.set_icon(pg.image.load(icon).convert_alpha())
self.draggable: DraggableWindow = DraggableWindow(window=self.window)
self.fullscreen: bool = False
self.fullscreen: bool = fullscreen
self.fps: int = fps
self.clock: pg.time.Clock = pg.time.Clock()
self.running: bool = False
Expand Down

0 comments on commit cf18d2e

Please sign in to comment.