Skip to content

Commit

Permalink
Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YU…
Browse files Browse the repository at this point in the history
…V overlay

 creation will fail in newer DirectFB versions.

   Fixes Bugzilla #394.
  • Loading branch information
icculus committed Feb 20, 2007
1 parent 178e975 commit 5a40a4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/video/directfb/SDL_DirectFB_yuv.c
Expand Up @@ -118,6 +118,15 @@ static DFBResult 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)
{
Expand Down

0 comments on commit 5a40a4d

Please sign in to comment.