【发布时间】:2021-02-26 14:53:14
【问题描述】:
我目前正在尝试设置从窗口模式和全屏模式切换。但是进入全屏并尝试返回后,游戏错误非常奇怪并且粘在左上角
顺便说一句: 显示宽度 = 1280 显示高度 = 720
elif (Settings_Menu == True):
screen.fill((0,0,0))
screen.blit(settingsscreen, (0,0))
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONDOWN:
if event.button == 1:
if checkbox1.collidepoint(event.pos):
if(Fullscreen == False):
Fullscreen = True
screen = pygame.display.set_mode((display_width, display_height), pygame.FULLSCREEN)
else:
Fullscreen = False
screen = pygame.display.set_mode((display_width, display_height), pygame.RESIZABLE)
【问题讨论】:
标签: python pygame pygame-surface