src/video/SDL_blit.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1402 d910939febfa
child 1668 4da1ee79c9af
     1.1 --- a/src/video/SDL_blit.h	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/src/video/SDL_blit.h	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -27,54 +27,57 @@
     1.4  #include "SDL_endian.h"
     1.5  
     1.6  /* The structure passed to the low level blit functions */
     1.7 -typedef struct {
     1.8 -	Uint8 *s_pixels;
     1.9 -	int s_width;
    1.10 -	int s_height;
    1.11 -	int s_skip;
    1.12 -	Uint8 *d_pixels;
    1.13 -	int d_width;
    1.14 -	int d_height;
    1.15 -	int d_skip;
    1.16 -	void *aux_data;
    1.17 -	SDL_PixelFormat *src;
    1.18 -	Uint8 *table;
    1.19 -	SDL_PixelFormat *dst;
    1.20 +typedef struct
    1.21 +{
    1.22 +    Uint8 *s_pixels;
    1.23 +    int s_width;
    1.24 +    int s_height;
    1.25 +    int s_skip;
    1.26 +    Uint8 *d_pixels;
    1.27 +    int d_width;
    1.28 +    int d_height;
    1.29 +    int d_skip;
    1.30 +    void *aux_data;
    1.31 +    SDL_PixelFormat *src;
    1.32 +    Uint8 *table;
    1.33 +    SDL_PixelFormat *dst;
    1.34  } SDL_BlitInfo;
    1.35  
    1.36  /* The type definition for the low level blit functions */
    1.37 -typedef void (*SDL_loblit)(SDL_BlitInfo *info);
    1.38 +typedef void (*SDL_loblit) (SDL_BlitInfo * info);
    1.39  
    1.40  /* This is the private info structure for software accelerated blits */
    1.41 -struct private_swaccel {
    1.42 -	SDL_loblit blit;
    1.43 -	void *aux_data;
    1.44 +struct private_swaccel
    1.45 +{
    1.46 +    SDL_loblit blit;
    1.47 +    void *aux_data;
    1.48  };
    1.49  
    1.50  /* Blit mapping definition */
    1.51 -typedef struct SDL_BlitMap {
    1.52 -	SDL_Surface *dst;
    1.53 -	int identity;
    1.54 -	Uint8 *table;
    1.55 -	SDL_blit hw_blit;
    1.56 -	SDL_blit sw_blit;
    1.57 -	struct private_hwaccel *hw_data;
    1.58 -	struct private_swaccel *sw_data;
    1.59 +typedef struct SDL_BlitMap
    1.60 +{
    1.61 +    SDL_Surface *dst;
    1.62 +    int identity;
    1.63 +    Uint8 *table;
    1.64 +    SDL_blit hw_blit;
    1.65 +    SDL_blit sw_blit;
    1.66 +    struct private_hwaccel *hw_data;
    1.67 +    struct private_swaccel *sw_data;
    1.68  
    1.69 -	/* the version count matches the destination; mismatch indicates
    1.70 -	   an invalid mapping */
    1.71 -        unsigned int format_version;
    1.72 +    /* the version count matches the destination; mismatch indicates
    1.73 +       an invalid mapping */
    1.74 +    unsigned int format_version;
    1.75  } SDL_BlitMap;
    1.76  
    1.77  
    1.78  /* Functions found in SDL_blit.c */
    1.79 -extern int SDL_CalculateBlit(SDL_Surface *surface);
    1.80 +extern int SDL_CalculateBlit (SDL_Surface * surface);
    1.81  
    1.82  /* Functions found in SDL_blit_{0,1,N,A}.c */
    1.83 -extern SDL_loblit SDL_CalculateBlit0(SDL_Surface *surface, int complex);
    1.84 -extern SDL_loblit SDL_CalculateBlit1(SDL_Surface *surface, int complex);
    1.85 -extern SDL_loblit SDL_CalculateBlitN(SDL_Surface *surface, int complex);
    1.86 -extern SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface *surface, int complex);
    1.87 +extern SDL_loblit SDL_CalculateBlit0 (SDL_Surface * surface, int complex);
    1.88 +extern SDL_loblit SDL_CalculateBlit1 (SDL_Surface * surface, int complex);
    1.89 +extern SDL_loblit SDL_CalculateBlitN (SDL_Surface * surface, int complex);
    1.90 +extern SDL_loblit SDL_CalculateAlphaBlit (SDL_Surface * surface, int complex);
    1.91  
    1.92  /*
    1.93   * Useful macros for blitting routines
    1.94 @@ -520,3 +523,4 @@
    1.95  #endif
    1.96  
    1.97  #endif /* _SDL_blit_h */
    1.98 +/* vi: set ts=4 sw=4 expandtab: */