renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
326 stars 64 forks source link

Can't change window resolution #69

Closed flexusjan closed 3 months ago

flexusjan commented 7 years ago

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?

renpytom commented 7 years ago

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

flexusjan commented 7 years ago

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?

bitcraft commented 7 years ago

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