diff --git a/docs/reST/ref/sdl2_video.rst b/docs/reST/ref/sdl2_video.rst index b5084f197b..be127057da 100644 --- a/docs/reST/ref/sdl2_video.rst +++ b/docs/reST/ref/sdl2_video.rst @@ -135,7 +135,7 @@ the window is full-screen to ensure the user is not trapped in your application. If you have a custom keyboard shortcut to exit fullscreen mode, you may suppress this behavior with an environment variable, e.g. - ``os.environ["SDL_ALLOW_ALT_TAB_WHILE_GRABBED"] = "0"``. + ``os.environ["SDL_ALLOW_ALT_TAB_WHILE_GRABBED"] = "0"``. This attribute requires SDL 2.0.16+. diff --git a/examples/go_over_there.py b/examples/go_over_there.py index 9b538bc359..d4b9b59bcf 100644 --- a/examples/go_over_there.py +++ b/examples/go_over_there.py @@ -40,7 +40,7 @@ def reset(): balls = [] for x in range(MAX_BALLS): pos = pygame.Vector2( - random.randint(0, SCREEN_SIZE.x), random.randint(0, SCREEN_SIZE.y) + random.randint(0, int(SCREEN_SIZE.x)), random.randint(0, int(SCREEN_SIZE.y)) ) speed = random.uniform(MIN_SPEED, MAX_SPEED) diff --git a/test/window_test.py b/test/window_test.py index bd72e5c93c..473d6faa8d 100644 --- a/test/window_test.py +++ b/test/window_test.py @@ -5,8 +5,6 @@ from pygame._sdl2.video import Window from pygame.version import SDL -os.environ["SDL_VIDEODRIVER"] = "dummy" - pygame.init()