src/video/SDL_video.c
changeset 2785 fa1095d42a5b
parent 2753 0969758c8809
child 2786 6bacfecbf27e
     1.1 --- a/src/video/SDL_video.c	Tue Nov 25 00:48:25 2008 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Nov 25 02:12:19 2008 +0000
     1.3 @@ -46,6 +46,9 @@
     1.4  #endif
     1.5  #endif /* SDL_VIDEO_OPENGL */
     1.6  
     1.7 +/* From SDL_surface.c */
     1.8 +extern void SDL_ConvertColorkeyToAlpha(SDL_Surface *surface);
     1.9 +
    1.10  /* Available video drivers */
    1.11  static VideoBootStrap *bootstrap[] = {
    1.12  #if SDL_VIDEO_DRIVER_COCOA
    1.13 @@ -1585,6 +1588,7 @@
    1.14              }
    1.15              dst = SDL_ConvertSurface(surface, dst_fmt, 0);
    1.16              if (dst) {
    1.17 +				SDL_ConvertColorkeyToAlpha(dst);
    1.18                  SDL_UpdateTexture(textureID, NULL, dst->pixels, dst->pitch);
    1.19                  SDL_FreeSurface(dst);
    1.20              }