Skip to content

Commit 4424a4c

Browse files
authored
Apply suggestions from code review
1 parent 597c1f6 commit 4424a4c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/reST/ref/pygame.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ updated. However, using this environment variable it is possible to get
536536
joystick updates even when the window is in the background. Must be set
537537
before calling :func:`pygame.init()` or :func:`pygame.joystick.init()`.
538538

539+
|
540+
539541
::
540542

541543
SDL_MOUSE_TOUCH_EVENTS

test/touch_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_num_fingers(self):
3131
if touch.get_device(0) >= 0:
3232
# mice acting as touch devices have negative device IDs
3333
# they also do not work with get_num_fingers()
34-
touch.get_num_fingers()
34+
touch.get_num_fingers(touch.get_device(0))
3535

3636
def test_num_fingers__invalid(self):
3737
self.assertRaises(TypeError, touch.get_num_fingers, "test")
@@ -60,7 +60,7 @@ def test_get_finger(self):
6060
"""ask for touch input and check the dict"""
6161

6262
os.environ["SDL_VIDEO_WINDOW_POS"] = "50,50"
63-
screen = pygame.display.set_mode((800, 600))
63+
screen = pygame.display.set_mode((1000, 600))
6464
screen.fill((255, 255, 255))
6565

6666
font = pygame.font.Font(None, 32)

0 commit comments

Comments
 (0)