comparison src/video/SDL_renderer_sw.c @ 2781:5651642f4a78

Added software fallback for YUV overlay code when YUV textures aren't available.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Nov 2008 23:25:36 +0000
parents 204be4fc2726
children 6bacfecbf27e
comparison
equal deleted inserted replaced
2780:cc15254e44b6 2781:5651642f4a78
359 359
360 static int 360 static int
361 SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) 361 SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
362 { 362 {
363 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { 363 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
364 texture->driverdata = SDL_SW_CreateYUVTexture(texture); 364 texture->driverdata = SDL_SW_CreateYUVTexture(texture->format, texture->w, texture->h);
365 } else { 365 } else {
366 int bpp; 366 int bpp;
367 Uint32 Rmask, Gmask, Bmask, Amask; 367 Uint32 Rmask, Gmask, Bmask, Amask;
368 368
369 if (!SDL_PixelFormatEnumToMasks 369 if (!SDL_PixelFormatEnumToMasks