Skip to content

Commit

Permalink
Merge branch 'main' into window-get_surface
Browse files Browse the repository at this point in the history
  • Loading branch information
yunline committed Oct 16, 2023
2 parents 025aaec + c8d952a commit 018b27c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/reST/ref/sdl2_video.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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+.

Expand Down
2 changes: 1 addition & 1 deletion examples/go_over_there.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions test/window_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from pygame._sdl2.video import Window
from pygame.version import SDL

os.environ["SDL_VIDEODRIVER"] = "dummy"

pygame.init()


Expand Down

0 comments on commit 018b27c

Please sign in to comment.