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