# HG changeset patch # User Ryan C. Gordon # Date 1172005512 0 # Node ID e5a65c16913b9fdc04173555fb1476039580818b # Parent d13618a935a2c26001a8895fbab9b4a44c9399b4 Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay creation will fail in newer DirectFB versions. Fixes Bugzilla #394. diff -r d13618a935a2 -r e5a65c16913b src/video/directfb/SDL_DirectFB_yuv.c --- a/src/video/directfb/SDL_DirectFB_yuv.c Fri Feb 16 04:56:17 2007 +0000 +++ b/src/video/directfb/SDL_DirectFB_yuv.c Tue Feb 20 21:05:12 2007 +0000 @@ -118,6 +118,15 @@ 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) {