Skip to content Skip to sidebar Skip to footer

Is There A Way To Stretch The Whole Display Image To Fit A Given Resolution?

I've been using pygame to make a game recently, and have ran into a little problem... Basically, I would like to be able to stretch the whole image that is on the screen (all the t

Solution 1:

Blit everything to a separate surface (not directly to the screen), let's call it main_surface. Then blit the main_surface to the screen. Call pygame.transform.scale(main_surface, (width, height) with the new width and height that you get from the VIDEORESIZE event to scale the main_surface and everything in it to the new window dimensions.


Post a Comment for "Is There A Way To Stretch The Whole Display Image To Fit A Given Resolution?"