启用pygame缩放 (#18)
* Closes #17 Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
This commit is contained in:
parent
47b4ba1783
commit
268b32bba5
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user