src/video/directfb/SDL_DirectFB_window.c
changeset 3038 c73a5f8a03d2
parent 3037 490f3e4fe753
child 3039 829043b363d1
     1.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Tue Jan 13 21:17:38 2009 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Tue Jan 13 22:59:02 2009 +0000
     1.3 @@ -420,7 +420,7 @@
     1.4      }
     1.5  
     1.6      if (adjust) {
     1.7 -#if DFB_VERSION_ATLEAST(1,2,0)
     1.8 +#if DFB_VERSION_ATLEAST(1,2,1)
     1.9         SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window,
    1.10                                                          windata->size.w,
    1.11                                                          windata->size.h));
    1.12 @@ -430,16 +430,13 @@
    1.13                                                            &windata->client));
    1.14  #else
    1.15         /* recreate subsurface */
    1.16 -       windata->surface->ReleaseSource(windata->surface);
    1.17 -       windata->window_surface->ReleaseSource(windata->window_surface);
    1.18         SDL_DFB_RELEASE(windata->surface);
    1.19 -       windata->surface = NULL;
    1.20         SDL_DFB_CHECKERR(windata->window->ResizeSurface(windata->window,
    1.21                                                         windata->size.w,
    1.22                                                         windata->size.h));
    1.23         SDL_DFB_CHECKERR(windata->window_surface->
    1.24 -                        GetSubSurface(windata->window_surface, &windata->client,
    1.25 -                                      &windata->surface));
    1.26 +                      GetSubSurface(windata->window_surface, &windata->client,
    1.27 +                                  &windata->surface));
    1.28  #endif
    1.29         DirectFB_WM_RedrawLayout(window);
    1.30      }