Skip to content

Commit 56bad98

Browse files
committed
Fix set_mode 0-size warning false positives
1 parent a6bc7f3 commit 56bad98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src_c/display.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,8 @@ pg_set_mode(PyObject *self, PyObject *arg, PyObject *kwds)
988988
desktop resolution without breaking compatibility. */
989989
w = display_mode.w;
990990
h = display_mode.h;
991+
w_actual = w; /* avoid warning false positives */
992+
h_actual = h;
991993
}
992994

993995
if (flags & PGS_FULLSCREEN) {

0 commit comments

Comments
 (0)