Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay

creation will fail in newer DirectFB versions.

   Fixes Bugzilla #394.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402277
This commit is contained in:
Ryan C. Gordon 2007-02-20 21:05:12 +00:00
parent 372defa7ba
commit b3c3a9ad47

View file

@ -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)
{