Skip to content
Permalink
Browse files

Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to…

… recreate it.
  • Loading branch information
slouken committed Apr 18, 2014
1 parent 2dacb60 commit 5439f9dd87e4d298f1c071b307d09fcbbdb7a90a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/SDL_video.c
@@ -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);

0 comments on commit 5439f9d

Please sign in to comment.