Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
icculus committed Feb 20, 2007
1 parent efd5039 commit 9c80c1199b98a53e60f8f24028a114ac30781191
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/video/directfb/SDL_DirectFB_yuv.c
@@ -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);

0 comments on commit 9c80c11

Please sign in to comment.