Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix fullscreen crash with DirectFB <= 1.2.0

  • Loading branch information
Couriersud committed Jan 13, 2009
1 parent e6784f3 commit 41e8e417bd14c44f2634df2ab7d9d039f4794293
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/video/directfb/SDL_DirectFB_window.c
@@ -429,11 +429,16 @@ DirectFB_AdjustWindowSurface(SDL_Window * window)
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));

0 comments on commit 41e8e41

Please sign in to comment.