diff src/video/SDL_video.c @ 1719:5b9f50c957ed SDL-1.3

You can now create multiple windows on Win32
author Sam Lantinga <slouken@libsdl.org>
date Wed, 28 Jun 2006 08:12:07 +0000
parents 931d111e737a
children a1ebb17f9c52
line wrap: on
line diff
--- a/src/video/SDL_video.c	Tue Jun 27 07:46:36 2006 +0000
+++ b/src/video/SDL_video.c	Wed Jun 28 08:12:07 2006 +0000
@@ -647,9 +647,9 @@
 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
 {
     const Uint32 allowed_flags = (SDL_WINDOW_FULLSCREEN |
-                                  SDL_WINDOW_BORDERLESS |
+                                  SDL_WINDOW_OPENGL |
                                   SDL_WINDOW_SHOWN |
-                                  SDL_WINDOW_OPENGL |
+                                  SDL_WINDOW_BORDERLESS |
                                   SDL_WINDOW_RESIZABLE |
                                   SDL_WINDOW_MAXIMIZED |
                                   SDL_WINDOW_MINIMIZED |
@@ -842,8 +842,12 @@
         return;
     }
 
-    window->x = x;
-    window->y = y;
+    if (x != SDL_WINDOWPOS_UNDEFINED) {
+        window->x = x;
+    }
+    if (y != SDL_WINDOWPOS_UNDEFINED) {
+        window->y = y;
+    }
 
     if (_this->SetWindowPosition) {
         _this->SetWindowPosition(_this, window);