Skip to content

Commit

Permalink
Don't handle resize event for borrowed window
Browse files Browse the repository at this point in the history
  • Loading branch information
yunline committed Oct 13, 2023
1 parent 5af5e6a commit 0bef22f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src_c/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,7 @@ _resize_event_watch(void *userdata, SDL_Event *event)
return 0;

if (event_window_pg->_is_borrowed) {
display_surf = pg_GetDefaultWindowSurface();
if (!display_surf) {
return 0;
}
display_surf->surf = SDL_GetWindowSurface(event_window);
// have been handled by event watch in display.c
return 0;
}

Expand Down

0 comments on commit 0bef22f

Please sign in to comment.