comparison 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
comparison
equal deleted inserted replaced
4011:f5794774970d 4012:4e29535b821b
272 } 272 }
273 if (SDL_Win->LockWithTimeout(50000) != B_OK) { 273 if (SDL_Win->LockWithTimeout(50000) != B_OK) {
274 return 0; 274 return 0;
275 } 275 }
276 BView * bview = overlay->hwdata->bview; 276 BView * bview = overlay->hwdata->bview;
277 bview->MoveTo(dst->x,dst->y); 277 if (SDL_Win->IsFullScreen()) {
278 int left,top;
279 SDL_Win->GetXYOffset(left,top);
280 bview->MoveTo(left+dst->x,top+dst->y);
281 } else {
282 bview->MoveTo(dst->x,dst->y);
283 }
278 bview->ResizeTo(dst->w,dst->h); 284 bview->ResizeTo(dst->w,dst->h);
279 bview->Flush(); 285 bview->Flush();
280 if (overlay->hwdata->first_display) { 286 if (overlay->hwdata->first_display) {
281 bview->Show(); 287 bview->Show();
282 overlay->hwdata->first_display = false; 288 overlay->hwdata->first_display = false;