src/video/directfb/SDL_DirectFB_window.c
changeset 3039 829043b363d1
parent 3038 c73a5f8a03d2
child 3040 62d4992e5a92
--- 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));