Skip to content

Commit

Permalink
initialize h_actual and w_actual
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbookworm committed Jul 14, 2024
1 parent d136d38 commit e7346e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src_c/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,9 @@ pg_set_mode(PyObject *self, PyObject *arg, PyObject *kwds)
h = 0;
}

h_actual = h;
w_actual = w;

if (!SDL_WasInit(SDL_INIT_VIDEO)) {
/* note SDL works special like this too */
if (!pg_display_init(NULL, NULL))
Expand Down

0 comments on commit e7346e1

Please sign in to comment.