Skip to content

Commit

Permalink
Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to…
Browse files Browse the repository at this point in the history
… recreate it.
  • Loading branch information
slouken committed Apr 18, 2014
1 parent 2dacb60 commit 5439f9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -1398,6 +1398,9 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags)
return -1;
}
}
if (flags & SDL_WINDOW_FOREIGN) {
window->flags |= SDL_WINDOW_FOREIGN;
}

if (title) {
SDL_SetWindowTitle(window, title);
Expand Down

0 comments on commit 5439f9d

Please sign in to comment.