From 268b32bba5c93b194ca003f9d346aed60d91fc4e Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Thu, 12 Jun 2025 23:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8pygame=E7=BC=A9=E6=94=BE=20(#?= =?UTF-8?q?18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Closes #17 Signed-off-by: Zhou Qiankang --- source/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tool.py b/source/tool.py index e68f99b..0a77231 100755 --- a/source/tool.py +++ b/source/tool.py @@ -244,7 +244,7 @@ def load_all_gfx( directory:str, colorkey:tuple[int]=c.WHITE, return graphics pg.display.set_caption(c.ORIGINAL_CAPTION) # 设置标题 -SCREEN = pg.display.set_mode(c.SCREEN_SIZE) # 设置初始屏幕 +SCREEN = pg.display.set_mode(c.SCREEN_SIZE, pg.SCALED) # 设置初始屏幕 pg.mixer.set_num_channels(255) # 设置可以同时播放的音频数量,默认为8,经常不够用 if os.path.exists(c.ORIGINAL_LOGO): # 设置窗口图标,仅对非Nuitka时生效,Nuitka不需要包括额外的图标文件,自动跳过这一过程即可 pg.display.set_icon(pg.image.load(c.ORIGINAL_LOGO))