From 28b52a27a073c71a41d472d82418d542552cb493 Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 28 Feb 2020 23:39:59 +0100 Subject: [PATCH] fix pyglet usage of deprecated API (#195) --- retro/examples/interactive.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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