# HG changeset patch # User Ryan C. Gordon # Date 1172005680 0 # Node ID 7ba4a732e3d0e420e27e0f95a62edbd76335cece # Parent cdaeb26ed66a4756263df023e002988a28a746ff Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix. diff -r cdaeb26ed66a -r 7ba4a732e3d0 src/video/directfb/SDL_DirectFB_yuv.c --- a/src/video/directfb/SDL_DirectFB_yuv.c Thu Feb 15 23:57:07 2007 +0000 +++ b/src/video/directfb/SDL_DirectFB_yuv.c Tue Feb 20 21:08:00 2007 +0000 @@ -116,6 +116,14 @@ 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);