src/video/SDL_surface.c
changeset 2787 93764fe8601a
parent 2786 6bacfecbf27e
child 2807 365fe1a2aad5
     1.1 --- a/src/video/SDL_surface.c	Tue Nov 25 02:21:53 2008 +0000
     1.2 +++ b/src/video/SDL_surface.c	Tue Nov 25 05:29:14 2008 +0000
     1.3 @@ -270,7 +270,7 @@
     1.4  }
     1.5  
     1.6  /* This is a fairly slow function to switch from colorkey to alpha */
     1.7 -void
     1.8 +static void
     1.9  SDL_ConvertColorkeyToAlpha(SDL_Surface * surface)
    1.10  {
    1.11      int x, y;
    1.12 @@ -813,6 +813,7 @@
    1.13                      &keyG, &keyB, &keyA);
    1.14          SDL_SetColorKey(convert, 1,
    1.15                          SDL_MapRGBA(convert->format, keyR, keyG, keyB, keyA));
    1.16 +        SDL_ConvertColorkeyToAlpha(convert);
    1.17      }
    1.18      convert->map->info.r = surface->map->info.r;
    1.19      convert->map->info.g = surface->map->info.g;