Mercurial > sdl-ios-xcode
diff src/video/bwindow/SDL_sysyuv.cc @ 4012:4e29535b821b SDL-1.2
Fixed bug #360
Fixed fullscreen video modes and improved the mouse grab code.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 07 Jul 2007 19:20:28 +0000 |
parents | 2b5c30359c1d |
children | a1b03ba2fcd0 |
line wrap: on
line diff
--- a/src/video/bwindow/SDL_sysyuv.cc Fri Jul 06 13:39:03 2007 +0000 +++ b/src/video/bwindow/SDL_sysyuv.cc Sat Jul 07 19:20:28 2007 +0000 @@ -274,7 +274,13 @@ return 0; } BView * bview = overlay->hwdata->bview; - bview->MoveTo(dst->x,dst->y); + if (SDL_Win->IsFullScreen()) { + int left,top; + SDL_Win->GetXYOffset(left,top); + bview->MoveTo(left+dst->x,top+dst->y); + } else { + bview->MoveTo(dst->x,dst->y); + } bview->ResizeTo(dst->w,dst->h); bview->Flush(); if (overlay->hwdata->first_display) {