Pygame屏幕大小与窗口大小不匹配

时间:2015-03-23 01:41:15

标签: python pygame

每次我创建一个pygame窗口时,我都会遇到pygame屏幕远小于实际窗口的问题。窗口已正确设置为pygame.display.set_mode((width, height))中的尺寸,但屏幕要小得多。我使用运行10.9.5的64位Mac OS x,但使用的是32位版本的python 2.7 enter image description here

我已尝试将RESIZE标记添加到set_mode(),但没有运气。

import pygame

(width, height) = (800, 600)
screen = pygame.display.set_mode((width, height))

running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

pygame.quit()

0 个答案:

没有答案
相关问题