From daeec6170ac2b90d1d4ee09a676a9737d82ed89e Mon Sep 17 00:00:00 2001 From: yunline Date: Mon, 16 Oct 2023 09:42:56 +0800 Subject: [PATCH 1/2] Fix "Unexpected indentation" in `sdl2_video.rst` --- docs/reST/ref/sdl2_video.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reST/ref/sdl2_video.rst b/docs/reST/ref/sdl2_video.rst index 4ef89eff0e..842855db48 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+. From bbd74913685e0e66d114f875a75f0ffd25dcadb3 Mon Sep 17 00:00:00 2001 From: yunline Date: Mon, 16 Oct 2023 09:51:44 +0800 Subject: [PATCH 2/2] Remove `os.environ["SDL_VIDEODRIVER"] = "dummy"` --- test/window_test.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/window_test.py b/test/window_test.py index 5eb045e9d4..e1b7e3e1c4 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()