Commit 8ad79cac authored by captnfab's avatar captnfab 🦃
Browse files

soft fullscreen

parent a676504e
......@@ -1919,7 +1919,11 @@ class PyGameUI:
self.fs_off = (0, int((my - mx/WIDTH*HEIGHT)/2))
self.fs_ratio = mx/WIDTH
pygame.display.init()
self.screen2 = pygame.display.set_mode((mx, my), flags=pygame.FULLSCREEN)
if False:
flags = pygame.FULLSCREEN
else:
flags = 0
self.screen2 = pygame.display.set_mode((mx, my), flags=flags)
self.screen2.fill(BLACK)
self.screen = pygame.Surface((WIDTH,HEIGHT))
self.fullscreen = True
......
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