Python Forum
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Screen is all black and nothing is updating, but I can't figure out why.
#9
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?
Reply


Messages In This Thread
RE: Screen is all black and nothing is updating, but I can't figure out why. - by SheeppOSU - Oct-23-2020, 12:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  what's not working? black window codeweak 3 975 Dec-07-2023, 02:32 AM
Last Post: Benixon
  [PyGame] When I hit the space bar from the home screen, it sends me to the game over screen JesusisKing 1 1,099 Apr-30-2023, 10:11 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020