Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Feb 2007 21:05:12 +0000
branchSDL-1.2
changeset 3920e5a65c16913b
parent 3919 d13618a935a2
child 3921 746aa4852f87
Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay
creation will fail in newer DirectFB versions.

Fixes Bugzilla #394.
src/video/directfb/SDL_DirectFB_yuv.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_yuv.c	Fri Feb 16 04:56:17 2007 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_yuv.c	Tue Feb 20 21:05:12 2007 +0000
     1.3 @@ -118,6 +118,15 @@
     1.4        break;
     1.5      }
     1.6  
     1.7 +  /* Need to set coop level or newer DirectFB versions will fail here. */
     1.8 +  ret = layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);
     1.9 +  if (ret)
    1.10 +    {
    1.11 +      SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret);
    1.12 +      layer->Release (layer);
    1.13 +      return ret;
    1.14 +    }
    1.15 +
    1.16    ret = layer->SetConfiguration (layer, &conf);
    1.17    if (ret)
    1.18      {