Commit 5439f9dd87e4d298f1c071b307d09fcbbdb7a90a

Sam Lantinga 2014-04-17T20:15:44

Fixed window losing the SDL_WINDOW_FOREIGN flag if something tries to recreate it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index cfa5602..37acc87 100644
--- a/src/video/SDL_video.c
+++ b/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);