Pygame.display.set_mode fills the entire screen

advertisements

When writing Pygame programs it has always bugged me that if someone else has a screen smaller or larger than mine It wont work correctly. when I use:

pygame.display.set_mode([1680, 1000]),pygame.FULLSCREEN)
                             /\
                        My screen size

It fills my screen but on a different screen size I would need to use a different resolution. Is there a way to set the resolution as 100 percent of the screeen


pygame.display.list_modes give you available resolutions so you can choose the best resolution.