Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_window.c @ 3039:829043b363d1
Fix fullscreen crash with DirectFB <= 1.2.0
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Tue, 13 Jan 2009 23:27:08 +0000 |
parents | c73a5f8a03d2 |
children | 62d4992e5a92 |
comparison
equal
deleted
inserted
replaced
3038:c73a5f8a03d2 | 3039:829043b363d1 |
---|---|
427 SDL_DFB_CHECKERR(windata->surface->MakeSubSurface(windata->surface, | 427 SDL_DFB_CHECKERR(windata->surface->MakeSubSurface(windata->surface, |
428 windata-> | 428 windata-> |
429 window_surface, | 429 window_surface, |
430 &windata->client)); | 430 &windata->client)); |
431 #else | 431 #else |
432 DFBWindowOptions opts; | |
433 | |
434 SDL_DFB_CHECKERR(windata->window->GetOptions(windata->window, &opts)); | |
432 /* recreate subsurface */ | 435 /* recreate subsurface */ |
433 SDL_DFB_RELEASE(windata->surface); | 436 SDL_DFB_RELEASE(windata->surface); |
434 SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window, | 437 |
435 windata->size.w, | 438 if (opts & DWOP_SCALE) |
436 windata->size.h)); | 439 SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window, |
440 windata->size.w, | |
441 windata->size.h)); | |
437 SDL_DFB_CHECKERR(windata->window_surface-> | 442 SDL_DFB_CHECKERR(windata->window_surface-> |
438 GetSubSurface(windata->window_surface, &windata->client, | 443 GetSubSurface(windata->window_surface, &windata->client, |
439 &windata->surface)); | 444 &windata->surface)); |
440 #endif | 445 #endif |
441 DirectFB_WM_RedrawLayout(window); | 446 DirectFB_WM_RedrawLayout(window); |