Mercurial > sdl-ios-xcode
diff src/video/SDL_RLEaccel.c @ 2262:bee005ace1bf
Work in progress: merging new texture features into SDL blit system
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Aug 2007 06:21:58 +0000 |
parents | 340942cfda48 |
children | e61ad15a205f |
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c Fri Aug 17 03:22:03 2007 +0000 +++ b/src/video/SDL_RLEaccel.c Fri Aug 17 06:21:58 2007 +0000 @@ -906,7 +906,7 @@ } alpha = (src->flags & SDL_SRCALPHA) == SDL_SRCALPHA - ? (src->map->cmod >> 24) : 255; + ? src->map->info.a : 255; /* if left or right edge clipping needed, call clip blit */ if (srcrect->x || srcrect->w != src->w) { RLEClipBlit(w, srcbuf, dst, dstbuf, srcrect, alpha); @@ -1715,7 +1715,7 @@ skip = run = 0; dst = rlebuf; rgbmask = ~surface->format->Amask; - ckey = surface->map->ckey & rgbmask; + ckey = surface->map->info.colorkey & rgbmask; lastline = dst; getpix = getpixes[bpp - 1]; w = surface->w; @@ -1948,7 +1948,7 @@ } /* fill it with the background colour */ - SDL_FillRect(surface, NULL, surface->map->ckey); + SDL_FillRect(surface, NULL, surface->map->info.colorkey); /* now render the encoded surface */ full.x = full.y = 0;