comparison src/video/SDL_yuv_sw.c @ 292:eadc0746dfaf

Added SDL_LockRect() and SDL_UnlockRect() Incorporated XFree86 extension libraries into the source
author Sam Lantinga <slouken@libsdl.org>
date Tue, 05 Mar 2002 19:55:32 +0000
parents e8157fcb3114
children f6ffac90895c
comparison
equal deleted inserted replaced
291:68a8a8237c09 292:eadc0746dfaf
1253 lum = overlay->pixels[0]; 1253 lum = overlay->pixels[0];
1254 Cr = lum + 1; 1254 Cr = lum + 1;
1255 Cb = lum + 3; 1255 Cb = lum + 3;
1256 break; 1256 break;
1257 default: 1257 default:
1258 SDL_SetError("Unsupported YUV format in blit (??)"); 1258 SDL_SetError("Unsupported YUV format in blit");
1259 return(-1); 1259 return(-1);
1260 } 1260 }
1261 if ( SDL_MUSTLOCK(display) ) { 1261 if ( SDL_MUSTLOCK(display) ) {
1262 if ( SDL_LockSurface(display) < 0 ) { 1262 if ( SDL_LockSurface(display) < 0 ) {
1263 return(-1); 1263 return(-1);