src/video/directfb/SDL_DirectFB_window.c
changeset 3038 c73a5f8a03d2
parent 3037 490f3e4fe753
child 3039 829043b363d1
--- 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);
     }