Skip to content
Snippets Groups Projects
Commit 5070f73e authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Fix missing pygame display init, check before.

parent 84fda205
No related branches found
No related tags found
2 merge requests!110V1.2.0 changes,!106Visual layout selection
Pipeline #60226 passed
......@@ -113,10 +113,10 @@ class Visualizer:
self.font = pygame.font.SysFont("Arial", 20)
self.init_get_state_image = False
# TODO FIX THIS
# self.observation_screen = pygame.display.set_mode(
# (100, 100), flags=pygame.HIDDEN
# )
if not pygame.display.get_init():
self.observation_screen = pygame.display.set_mode(
(100, 100), flags=pygame.HIDDEN
)
self.grid_size = 48
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment