Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit_A.c @ 2853:6258fa7cd300
Fixed picking blit function when RLE fails
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 07 Dec 2008 22:37:40 +0000 |
parents | 204be4fc2726 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2852:7046f9567045 | 2853:6258fa7cd300 |
---|---|
2151 SDL_CalculateBlitA(SDL_Surface * surface) | 2151 SDL_CalculateBlitA(SDL_Surface * surface) |
2152 { | 2152 { |
2153 SDL_PixelFormat *sf = surface->format; | 2153 SDL_PixelFormat *sf = surface->format; |
2154 SDL_PixelFormat *df = surface->map->dst->format; | 2154 SDL_PixelFormat *df = surface->map->dst->format; |
2155 | 2155 |
2156 switch (surface->map->info.flags) { | 2156 switch (surface->map->info.flags & ~SDL_COPY_RLE_MASK) { |
2157 case SDL_COPY_BLEND: | 2157 case SDL_COPY_BLEND: |
2158 /* Per-pixel alpha blits */ | 2158 /* Per-pixel alpha blits */ |
2159 switch (df->BytesPerPixel) { | 2159 switch (df->BytesPerPixel) { |
2160 case 1: | 2160 case 1: |
2161 return BlitNto1PixelAlpha; | 2161 return BlitNto1PixelAlpha; |