src/video/SDL_blit_0.c
changeset 6967 adc80d085ddf
parent 6885 700f1b25f77f
child 7502 6ff02ff3cf06
     1.1 --- a/src/video/SDL_blit_0.c	Tue Mar 05 18:54:55 2013 -0500
     1.2 +++ b/src/video/SDL_blit_0.c	Mon Feb 25 22:46:21 2013 +0000
     1.3 @@ -443,11 +443,11 @@
     1.4  }
     1.5  
     1.6  static const SDL_BlitFunc bitmap_blit[] = {
     1.7 -    NULL, BlitBto1, BlitBto2, BlitBto3, BlitBto4
     1.8 +    (SDL_BlitFunc) NULL, BlitBto1, BlitBto2, BlitBto3, BlitBto4
     1.9  };
    1.10  
    1.11  static const SDL_BlitFunc colorkey_blit[] = {
    1.12 -    NULL, BlitBto1Key, BlitBto2Key, BlitBto3Key, BlitBto4Key
    1.13 +    (SDL_BlitFunc) NULL, BlitBto1Key, BlitBto2Key, BlitBto3Key, BlitBto4Key
    1.14  };
    1.15  
    1.16  SDL_BlitFunc
    1.17 @@ -457,7 +457,7 @@
    1.18  
    1.19      if (surface->format->BitsPerPixel != 1) {
    1.20          /* We don't support sub 8-bit packed pixel modes */
    1.21 -        return NULL;
    1.22 +        return (SDL_BlitFunc) NULL;
    1.23      }
    1.24      if (surface->map->dst->format->BitsPerPixel < 8) {
    1.25          which = 0;
    1.26 @@ -472,12 +472,12 @@
    1.27          return colorkey_blit[which];
    1.28  
    1.29      case SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND:
    1.30 -        return which >= 2 ? BlitBtoNAlpha : NULL;
    1.31 +        return which >= 2 ? BlitBtoNAlpha : (SDL_BlitFunc) NULL;
    1.32  
    1.33      case SDL_COPY_COLORKEY | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND:
    1.34 -        return which >= 2 ? BlitBtoNAlphaKey : NULL;
    1.35 +        return which >= 2 ? BlitBtoNAlphaKey : (SDL_BlitFunc) NULL;
    1.36      }
    1.37 -    return NULL;
    1.38 +    return (SDL_BlitFunc) NULL;
    1.39  }
    1.40  
    1.41  /* vi: set ts=4 sw=4 expandtab: */