Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Feb 2007 21:08:00 +0000
changeset 20947ba4a732e3d0
parent 2093 cdaeb26ed66a
child 2095 1d9cd8266e22
Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix.
src/video/directfb/SDL_DirectFB_yuv.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_yuv.c	Thu Feb 15 23:57:07 2007 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_yuv.c	Tue Feb 20 21:08:00 2007 +0000
     1.3 @@ -116,6 +116,14 @@
     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 +        SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret);
    1.11 +        layer->Release(layer);
    1.12 +        return ret;
    1.13 +    }
    1.14 +
    1.15      ret = layer->SetConfiguration(layer, &conf);
    1.16      if (ret) {
    1.17          SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret);