From 153d21ace9801ac665e2d7f99c967147d1214f29 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 3 Sep 2023 14:39:50 +0200 Subject: Updated 16 files and added 5 files (automated) --- src/window.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/window.py') diff --git a/src/window.py b/src/window.py index fd35f39..4df6065 100644 --- a/src/window.py +++ b/src/window.py @@ -1,6 +1,13 @@ +import sys + import pygame def init(): pygame.display.set_caption("Blocks") - pygame.mouse.set_visible(False) - pygame.mouse.set_pos((0, 0)) \ No newline at end of file + + if sys.platform == "darwin": + pygame.display.set_icon(pygame.image.load('./assets/textures/icon-mac.png').convert_alpha()) + else: + pygame.display.set_icon(pygame.image.load('./assets/textures/icon.png').convert_alpha()) + + pygame.mouse.set_visible(True) -- cgit