Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix fullscreen crash with DirectFB <= 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Couriersud committed Jan 13, 2009
1 parent e6784f3 commit 41e8e41
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/video/directfb/SDL_DirectFB_window.c
Expand Up @@ -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));
Expand Down

0 comments on commit 41e8e41

Please sign in to comment.