Mercurial > sdl-ios-xcode
changeset 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 |
files | src/video/directfb/SDL_DirectFB_window.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_window.c Tue Jan 13 22:59:02 2009 +0000 +++ b/src/video/directfb/SDL_DirectFB_window.c Tue Jan 13 23:27:08 2009 +0000 @@ -429,11 +429,16 @@ window_surface, &windata->client)); #else + DFBWindowOptions opts; + + SDL_DFB_CHECKERR(windata->window->GetOptions(windata->window, &opts)); /* recreate subsurface */ SDL_DFB_RELEASE(windata->surface); - SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window, - windata->size.w, - windata->size.h)); + + if (opts & DWOP_SCALE) + SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window, + windata->size.w, + windata->size.h)); SDL_DFB_CHECKERR(windata->window_surface-> GetSubSurface(windata->window_surface, &windata->client, &windata->surface));