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

Commit

Permalink
Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 20, 2007
1 parent efd5039 commit 9c80c11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video/directfb/SDL_DirectFB_yuv.c
Expand Up @@ -116,6 +116,14 @@ CreateYUVSurface(_THIS, struct private_yuvhwdata *hwdata,
break;
}

/* Need to set coop level or newer DirectFB versions will fail here. */
ret = layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE);
if (ret) {
SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret);
layer->Release(layer);
return ret;
}

ret = layer->SetConfiguration(layer, &conf);
if (ret) {
SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret);
Expand Down

0 comments on commit 9c80c11

Please sign in to comment.