Commit f759ff7f authored by captnfab's avatar captnfab 🦃
Browse files

Force full refresh after mode change

- not done automatically on older pygame
- closes #45
parent 54e63ec4
......@@ -1945,6 +1945,7 @@ class PyGameUI:
self.screen2.fill(BLACK)
self.screen = pygame.Surface((WIDTH,HEIGHT))
self.fullscreen = rnd.params['fullscreen']
self.need_full_redraw = True
elif rnd.params.get('fullscreen', )==0 and self.fullscreen>0:
if self.screen2 is not None:
del self.screen2
......@@ -1953,6 +1954,7 @@ class PyGameUI:
pygame.display.init()
self.screen = pygame.display.set_mode((WIDTH, HEIGHT))
self.fullscreen = 0
self.need_full_redraw = True
update_rects = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment