From 70a4c41a75275be6050683191e05ec1cb693ffce Mon Sep 17 00:00:00 2001 From: Zoltan Szabatin Date: Wed, 14 May 2025 21:36:56 -0700 Subject: feat: Split updates screen size --- src/splitscreen_duo/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/splitscreen_duo/__init__.py') diff --git a/src/splitscreen_duo/__init__.py b/src/splitscreen_duo/__init__.py index defba37..3df7290 100644 --- a/src/splitscreen_duo/__init__.py +++ b/src/splitscreen_duo/__init__.py @@ -28,6 +28,7 @@ def main() -> int: print("The Dual Screen Console") logger.info(f"running as {os.getenv('INSTANCE', 'unknown')}") menu.init_display() + menu.set_screen_orientation(is_joint_mode[0]) font = pygame.font.Font(None, 36) BLACK = (0, 0, 0) @@ -92,10 +93,12 @@ def main() -> int: if command == Command.ENTER_JOINT_MODE.value: is_joint_mode[0] = True + menu.set_screen_orientation(is_joint_mode[0]) logger.info("secondary entering joint mode") elif command == Command.EXIT_JOINT_MODE.value: is_joint_mode[0] = False + menu.set_screen_orientation(is_joint_mode[0]) logger.info("secondary exiting joint mode") elif command == Command.QUIT.value: pygame.quit() @@ -167,8 +170,6 @@ def main() -> int: if result == 0: return 0 - menu.draw_menu() - pygame.quit() return 0 -- cgit v1.2.3