Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix.

This commit is contained in:
Ryan C. Gordon
2007-02-20 21:08:00 +00:00
parent 929f8883e6
commit fd9549429a

View File

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