Skip to content

Commit

Permalink
fix pyglet usage of deprecated API (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimond authored Feb 28, 2020
1 parent 9ff6304 commit 28b52a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions retro/examples/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28b52a2

Please sign in to comment.