Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_sysevents.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 | c3e36ac8a94c |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c Sun Jan 29 18:17:35 2006 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Sun Jan 29 22:09:26 2006 +0000 @@ -568,8 +568,12 @@ GetClientRect(SDL_Window, &SDL_bounds); ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds); ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds+1); - SDL_windowX = SDL_bounds.left; - SDL_windowY = SDL_bounds.top; + if ( !SDL_resizing && !IsZoomed(SDL_Window) && + SDL_PublicSurface && + !(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) { + SDL_windowX = SDL_bounds.left; + SDL_windowY = SDL_bounds.top; + } w = SDL_bounds.right-SDL_bounds.left; h = SDL_bounds.bottom-SDL_bounds.top; if ( this->input_grab != SDL_GRAB_OFF ) {