Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_window.c @ 3038:c73a5f8a03d2
Fixed MakeSubSurface compiling issue for DirectFB <= 1.2.0
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Tue, 13 Jan 2009 22:59:02 +0000 |
parents | 490f3e4fe753 |
children | 829043b363d1 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_window.c Tue Jan 13 21:17:38 2009 +0000 +++ b/src/video/directfb/SDL_DirectFB_window.c Tue Jan 13 22:59:02 2009 +0000 @@ -420,7 +420,7 @@ } if (adjust) { -#if DFB_VERSION_ATLEAST(1,2,0) +#if DFB_VERSION_ATLEAST(1,2,1) SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window, windata->size.w, windata->size.h)); @@ -430,16 +430,13 @@ &windata->client)); #else /* recreate subsurface */ - windata->surface->ReleaseSource(windata->surface); - windata->window_surface->ReleaseSource(windata->window_surface); SDL_DFB_RELEASE(windata->surface); - windata->surface = NULL; 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)); + GetSubSurface(windata->window_surface, &windata->client, + &windata->surface)); #endif DirectFB_WM_RedrawLayout(window); }