Неправильный размер окна PygamePython

Программы на Python
Anonymous
Неправильный размер окна Pygame

Сообщение Anonymous »


When I run this code:

import pygame SCREEN = pygame.display.set_mode((0,0),pygame.FULLSCREEN) img = pygame.image.load("Untitled.png") run = True while run: for _ in pygame.event.get(): if _.type == pygame.QUIT: run = False SCREEN.blit(img,(0,0)) pygame.display.update() pygame.quit() Where img is a 1920x1080 image, I only see a roughly 1200x675 part of it.

This is a new PC, but if I run pygame.display.Info(), it shows my display size as 1920x1080, and in windows display settings, it is 1920x1080. The


Источник: https://stackoverflow.com/questions/780 ... wrong-size

Вернуться в «Python»