changeset 2094:7ba4a732e3d0

Merged r2985:2986 from branches/SDL-1.2: directfb yuv coop level fix.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 20 Feb 2007 21:08:00 +0000
parents cdaeb26ed66a
children 1d9cd8266e22
files src/video/directfb/SDL_DirectFB_yuv.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);