Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to recreate it.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Apr 2014 20:15:44 -0700
changeset 87082a76a78f7723
parent 8707 d838991b3fb0
child 8709 a4346af9eec4
Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to recreate it.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Thu Apr 17 20:06:02 2014 -0700
     1.2 +++ b/src/video/SDL_video.c	Thu Apr 17 20:15:44 2014 -0700
     1.3 @@ -1398,6 +1398,9 @@
     1.4              return -1;
     1.5          }
     1.6      }
     1.7 +    if (flags & SDL_WINDOW_FOREIGN) {
     1.8 +        window->flags |= SDL_WINDOW_FOREIGN;
     1.9 +    }
    1.10  
    1.11      if (title) {
    1.12          SDL_SetWindowTitle(window, title);