pygame_sdl2 icon indicating copy to clipboard operation
pygame_sdl2 copied to clipboard

Can't change window resolution

Open flexusjan opened this issue 8 years ago • 3 comments

I tried to set the screen resolution to 1280x720

screen = pygame.display.set_mode((1280, 720))

On Windows it works perfect: It creates an window with size 1280x720

On Android it doesen't work! I can change the resolution to whatever I want. It's still 1920x1080 (my default display resolution)

Maybe it's a problem with the aspect ratio? But both is 16:9...

Any ideas?

flexusjan avatar Feb 15 '17 12:02 flexusjan

It's an Android thing - Android only allows you to create fullscreen windows.

renpytom avatar Feb 15 '17 14:02 renpytom

yeah thats okay, but I want a fullscreen window with a custom resolution (1280x720) is this possible on an android device with native 1920x1080 resolution?

flexusjan avatar Feb 15 '17 20:02 flexusjan

Maybe render everything at 1280x720 and scale it to the larger size each draw?

bitcraft avatar Mar 24 '17 14:03 bitcraft