Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_yuv.c @ 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 | c121d94672cb |
children | 2c835d58faad |
comparison
equal
deleted
inserted
replaced
2093:cdaeb26ed66a | 2094:7ba4a732e3d0 |
---|---|
112 break; | 112 break; |
113 default: | 113 default: |
114 fprintf(stderr, "SDL_DirectFB: Unsupported YUV format (0x%08x)!\n", | 114 fprintf(stderr, "SDL_DirectFB: Unsupported YUV format (0x%08x)!\n", |
115 format); | 115 format); |
116 break; | 116 break; |
117 } | |
118 | |
119 /* Need to set coop level or newer DirectFB versions will fail here. */ | |
120 ret = layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE); | |
121 if (ret) { | |
122 SetDirectFBError("IDirectFBDisplayLayer::SetCooperativeLevel() failed", ret); | |
123 layer->Release(layer); | |
124 return ret; | |
117 } | 125 } |
118 | 126 |
119 ret = layer->SetConfiguration(layer, &conf); | 127 ret = layer->SetConfiguration(layer, &conf); |
120 if (ret) { | 128 if (ret) { |
121 SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret); | 129 SetDirectFBerror("IDirectFBDisplayLayer::SetConfiguration", ret); |