Mercurial > sdl-ios-xcode
diff src/video/windib/SDL_dibvideo.c @ 1291:31331c444ea2
Only save the window position if we're in windowed mode
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Jan 2006 22:09:26 +0000 |
parents | c4a5a772c5d9 |
children | 59c7a470a51e |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c Sun Jan 29 18:17:35 2006 +0000 +++ b/src/video/windib/SDL_dibvideo.c Sun Jan 29 22:09:26 2006 +0000 @@ -468,6 +468,7 @@ if ( current->flags & SDL_OPENGL ) { WIN_GL_ShutDown(this); } + SDL_resizing = 1; /* Recalculate the bitmasks if necessary */ if ( bpp == current->format->BitsPerPixel ) { @@ -686,7 +687,6 @@ } swp_flags = (SWP_NOCOPYBITS | SWP_SHOWWINDOW); - SDL_resizing = 1; bounds.left = SDL_windowX; bounds.top = SDL_windowY; bounds.right = SDL_windowX+video->w; @@ -713,9 +713,13 @@ top = HWND_NOTOPMOST; } SetWindowPos(SDL_Window, top, x, y, width, height, swp_flags); - SDL_resizing = 0; + if ( !(flags & SDL_FULLSCREEN) ) { + SDL_windowX = SDL_bounds.left; + SDL_windowY = SDL_bounds.top; + } SetForegroundWindow(SDL_Window); } + SDL_resizing = 0; /* Set up for OpenGL */ if ( flags & SDL_OPENGL ) {