Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1290:c4a5a772c5d9 | 1291:31331c444ea2 |
---|---|
566 int w, h; | 566 int w, h; |
567 | 567 |
568 GetClientRect(SDL_Window, &SDL_bounds); | 568 GetClientRect(SDL_Window, &SDL_bounds); |
569 ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds); | 569 ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds); |
570 ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds+1); | 570 ClientToScreen(SDL_Window, (LPPOINT)&SDL_bounds+1); |
571 SDL_windowX = SDL_bounds.left; | 571 if ( !SDL_resizing && !IsZoomed(SDL_Window) && |
572 SDL_windowY = SDL_bounds.top; | 572 SDL_PublicSurface && |
573 !(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) { | |
574 SDL_windowX = SDL_bounds.left; | |
575 SDL_windowY = SDL_bounds.top; | |
576 } | |
573 w = SDL_bounds.right-SDL_bounds.left; | 577 w = SDL_bounds.right-SDL_bounds.left; |
574 h = SDL_bounds.bottom-SDL_bounds.top; | 578 h = SDL_bounds.bottom-SDL_bounds.top; |
575 if ( this->input_grab != SDL_GRAB_OFF ) { | 579 if ( this->input_grab != SDL_GRAB_OFF ) { |
576 ClipCursor(&SDL_bounds); | 580 ClipCursor(&SDL_bounds); |
577 } | 581 } |