Oct-23-2020, 12:26 AM
I figured out that this line was causing it:
if event.type == pygame.VIDEORESIZE: self.screen = pygame.transform.scale(self.screen, (event.w, event.h)) self.currentWindow.resize()When the window is resized, the screen object still has the same width and height. So what is the best way to change it's height and width variables without messing up the screen like so?