src/video/SDL_blit.h
changeset 2267 c785543d1843
parent 2266 e61ad15a205f
child 2824 4dba7aa7ea77
     1.1 --- a/src/video/SDL_blit.h	Sat Aug 18 01:44:21 2007 +0000
     1.2 +++ b/src/video/SDL_blit.h	Sat Aug 18 05:39:09 2007 +0000
     1.3 @@ -62,13 +62,16 @@
     1.4  #define SDL_CPU_ALTIVEC_PREFETCH    0x00000010
     1.5  #define SDL_CPU_ALTIVEC_NOPREFETCH  0x00000020
     1.6  
     1.7 -typedef struct {
     1.8 +typedef struct
     1.9 +{
    1.10      Uint8 *src;
    1.11      int src_w, src_h;
    1.12      int src_pitch;
    1.13 +    int src_skip;
    1.14      Uint8 *dst;
    1.15      int dst_w, dst_h;
    1.16      int dst_pitch;
    1.17 +    int dst_skip;
    1.18      SDL_PixelFormat *src_fmt;
    1.19      SDL_PixelFormat *dst_fmt;
    1.20      Uint8 *table;
    1.21 @@ -77,9 +80,10 @@
    1.22      Uint8 r, g, b, a;
    1.23  } SDL_BlitInfo;
    1.24  
    1.25 -typedef void (SDLCALL * SDL_BlitFunc)(SDL_BlitInfo *info);
    1.26 +typedef void (SDLCALL * SDL_BlitFunc) (SDL_BlitInfo * info);
    1.27  
    1.28 -typedef struct {
    1.29 +typedef struct
    1.30 +{
    1.31      Uint32 src_format;
    1.32      Uint32 dst_format;
    1.33      int flags;
    1.34 @@ -104,10 +108,11 @@
    1.35  /* Functions found in SDL_blit.c */
    1.36  extern int SDL_CalculateBlit(SDL_Surface * surface);
    1.37  
    1.38 -/* Blit function tables in SDL_blit_*.c */
    1.39 -extern SDL_BlitFuncEntry SDL_BlitFuncTable0[];
    1.40 -extern SDL_BlitFuncEntry SDL_BlitFuncTable1[];
    1.41 -extern SDL_BlitFuncEntry SDL_BlitFuncTableN[];
    1.42 +/* Functions found in SDL_blit_*.c */
    1.43 +extern SDL_BlitFunc SDL_CalculateBlit0(SDL_Surface * surface);
    1.44 +extern SDL_BlitFunc SDL_CalculateBlit1(SDL_Surface * surface);
    1.45 +extern SDL_BlitFunc SDL_CalculateBlitN(SDL_Surface * surface);
    1.46 +extern SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface * surface);
    1.47  
    1.48  /*
    1.49   * Useful macros for blitting routines