comparison src/video/directfb/SDL_DirectFB_yuv.c @ 3920:e5a65c16913b SDL-1.2

Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay creation will fail in newer DirectFB versions. Fixes Bugzilla #394.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 20 Feb 2007 21:05:12 +0000
parents 23fe15f88c03
children a8a548394a81
comparison
equal deleted inserted replaced
3919:d13618a935a2 3920:e5a65c16913b
116 default: 116 default:
117 fprintf (stderr, "SDL_DirectFB: Unsupported YUV format (0x%08x)!\n", format); 117 fprintf (stderr, "SDL_DirectFB: Unsupported YUV format (0x%08x)!\n", format);
118 break; 118 break;
119 } 119 }
120 120
121 /* Need to set coop level or newer DirectFB versions will fail here. */
122 ret = layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);
123 if (ret)
124 {
125 SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret);
126 layer->Release (layer);
127 return ret;
128 }
129
121 ret = layer->SetConfiguration (layer, &conf); 130 ret = layer->SetConfiguration (layer, &conf);
122 if (ret) 131 if (ret)
123 { 132 {
124 SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret); 133 SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret);
125 layer->Release (layer); 134 layer->Release (layer);