Explorar el Código

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

Sam Lantinga hace 12 años
padre
commit
5439f9dd87
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/video/SDL_video.c

+ 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);