Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix fullscreen crash with DirectFB <= 1.2.0
- Loading branch information
Showing
with
8 additions
and
3 deletions.
-
+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)); |
|
|