src/video/SDL_RLEaccel.c
changeset 2262 bee005ace1bf
parent 2257 340942cfda48
child 2266 e61ad15a205f
     1.1 --- a/src/video/SDL_RLEaccel.c	Fri Aug 17 03:22:03 2007 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Fri Aug 17 06:21:58 2007 +0000
     1.3 @@ -906,7 +906,7 @@
     1.4      }
     1.5  
     1.6      alpha = (src->flags & SDL_SRCALPHA) == SDL_SRCALPHA
     1.7 -        ? (src->map->cmod >> 24) : 255;
     1.8 +        ? src->map->info.a : 255;
     1.9      /* if left or right edge clipping needed, call clip blit */
    1.10      if (srcrect->x || srcrect->w != src->w) {
    1.11          RLEClipBlit(w, srcbuf, dst, dstbuf, srcrect, alpha);
    1.12 @@ -1715,7 +1715,7 @@
    1.13      skip = run = 0;
    1.14      dst = rlebuf;
    1.15      rgbmask = ~surface->format->Amask;
    1.16 -    ckey = surface->map->ckey & rgbmask;
    1.17 +    ckey = surface->map->info.colorkey & rgbmask;
    1.18      lastline = dst;
    1.19      getpix = getpixes[bpp - 1];
    1.20      w = surface->w;
    1.21 @@ -1948,7 +1948,7 @@
    1.22                  }
    1.23  
    1.24                  /* fill it with the background colour */
    1.25 -                SDL_FillRect(surface, NULL, surface->map->ckey);
    1.26 +                SDL_FillRect(surface, NULL, surface->map->info.colorkey);
    1.27  
    1.28                  /* now render the encoded surface */
    1.29                  full.x = full.y = 0;