lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
530 stars 190 forks source link

Partial black screen if update callback not defined #248

Closed dogwynn closed 2 years ago

dogwynn commented 3 years ago

If the window dimensions extend beyond the end of the screen on first rendering (e.g. issue #247), and if there is not an update callback defined, then the the portion of the window outside of screen is not rendered. Furthermore, if the window is brought fully into view, the unrendered portion remains black.

pygame 2.0.1 (SDL 2.0.14, Python 3.9.1) pgzero 1.2.1 Windows 10

smaller

lordmauve commented 2 years ago

I believe this is fixed in 126f7cf21e6c0cd493ddd14468f934f7506fa343 by handling the VIDEOEXPOSE event.