src/video/SDL_blit_1.c
changeset 6967 adc80d085ddf
parent 6885 700f1b25f77f
child 7502 6ff02ff3cf06
     1.1 --- a/src/video/SDL_blit_1.c	Tue Mar 05 18:54:55 2013 -0500
     1.2 +++ b/src/video/SDL_blit_1.c	Mon Feb 25 22:46:21 2013 +0000
     1.3 @@ -511,11 +511,11 @@
     1.4  }
     1.5  
     1.6  static const SDL_BlitFunc one_blit[] = {
     1.7 -    NULL, Blit1to1, Blit1to2, Blit1to3, Blit1to4
     1.8 +    (SDL_BlitFunc) NULL, Blit1to1, Blit1to2, Blit1to3, Blit1to4
     1.9  };
    1.10  
    1.11  static const SDL_BlitFunc one_blitkey[] = {
    1.12 -    NULL, Blit1to1Key, Blit1to2Key, Blit1to3Key, Blit1to4Key
    1.13 +    (SDL_BlitFunc) NULL, Blit1to1Key, Blit1to2Key, Blit1to3Key, Blit1to4Key
    1.14  };
    1.15  
    1.16  SDL_BlitFunc
    1.17 @@ -541,12 +541,12 @@
    1.18          /* Supporting 8bpp->8bpp alpha is doable but requires lots of
    1.19             tables which consume space and takes time to precompute,
    1.20             so is better left to the user */
    1.21 -        return which >= 2 ? Blit1toNAlpha : NULL;
    1.22 +        return which >= 2 ? Blit1toNAlpha : (SDL_BlitFunc) NULL;
    1.23  
    1.24      case SDL_COPY_COLORKEY | SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND:
    1.25 -        return which >= 2 ? Blit1toNAlphaKey : NULL;
    1.26 +        return which >= 2 ? Blit1toNAlphaKey : (SDL_BlitFunc) NULL;
    1.27      }
    1.28 -    return NULL;
    1.29 +    return (SDL_BlitFunc) NULL;
    1.30  }
    1.31  
    1.32  /* vi: set ts=4 sw=4 expandtab: */