src/video/directfb/SDL_DirectFB_yuv.c
branchSDL-1.2
changeset 3920 e5a65c16913b
parent 1782 23fe15f88c03
child 4018 a8a548394a81
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);