Skip to content

Commit 85d4c01

Browse files
committed
Document VIDEORESIZE diff OS behavior
1 parent 3c8f666 commit 85d4c01

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

buildconfig/stubs/pygame/display.pyi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ automatically switch to operate on the new display.
3434
When the display mode is set, several events are placed on the pygame event
3535
queue. ``pygame.QUIT`` is sent when the user has requested the program to
3636
shut down. The window will receive ``pygame.ACTIVEEVENT`` events as the display
37-
gains and loses input focus. If the display is set with the
38-
``pygame.RESIZABLE`` flag, ``pygame.VIDEORESIZE`` events will be sent when the
39-
user adjusts the window dimensions. Hardware displays that draw direct to the
40-
screen will get ``pygame.VIDEOEXPOSE`` events when portions of the window must
41-
be redrawn.
37+
gains and loses input focus. If the display is set to be resizable with the
38+
``pygame.RESIZABLE`` flag, ``pygame.VIDEORESIZE`` event(s) will be sent when the
39+
user adjusts the window dimensions. Depending on your platform, this may be
40+
multiple gradual events or one event at the end (Windows). Hardware displays
41+
that draw direct to the screen will get ``pygame.VIDEOEXPOSE`` events when
42+
portions of the window must be redrawn.
4243
4344
A new windowevent API was introduced in pygame 2.0.1. Check event module docs
4445
for more information on that

0 commit comments

Comments
 (0)