diff --git a/retro/examples/interactive.py b/retro/examples/interactive.py index f1c2d1b35..e1df86cc2 100644 --- a/retro/examples/interactive.py +++ b/retro/examples/interactive.py @@ -31,8 +31,7 @@ def __init__(self, env, sync=True, tps=60, aspect_ratio=None): aspect_ratio = image_width / image_height # guess a screen size that doesn't distort the image too much but also is not tiny or huge - platform = pyglet.window.get_platform() - display = platform.get_default_display() + display = pyglet.canvas.get_display() screen = display.get_default_screen() max_win_width = screen.width * 0.9 max_win_height = screen.height * 0.9