src/video/SDL_blit.h
changeset 1895 c121d94672cb
parent 1402 d910939febfa
child 2247 93994f65c74c
     1.1 --- a/src/video/SDL_blit.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/src/video/SDL_blit.h	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -27,54 +27,55 @@
     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 sw_blit;
    1.65 +    struct private_swaccel *sw_data;
    1.66  
    1.67 -	/* the version count matches the destination; mismatch indicates
    1.68 -	   an invalid mapping */
    1.69 -        unsigned int format_version;
    1.70 +    /* the version count matches the destination; mismatch indicates
    1.71 +       an invalid mapping */
    1.72 +    unsigned int format_version;
    1.73  } SDL_BlitMap;
    1.74  
    1.75  
    1.76  /* Functions found in SDL_blit.c */
    1.77 -extern int SDL_CalculateBlit(SDL_Surface *surface);
    1.78 +extern int SDL_CalculateBlit(SDL_Surface * surface);
    1.79  
    1.80  /* Functions found in SDL_blit_{0,1,N,A}.c */
    1.81 -extern SDL_loblit SDL_CalculateBlit0(SDL_Surface *surface, int complex);
    1.82 -extern SDL_loblit SDL_CalculateBlit1(SDL_Surface *surface, int complex);
    1.83 -extern SDL_loblit SDL_CalculateBlitN(SDL_Surface *surface, int complex);
    1.84 -extern SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface *surface, int complex);
    1.85 +extern SDL_loblit SDL_CalculateBlit0(SDL_Surface * surface, int complex);
    1.86 +extern SDL_loblit SDL_CalculateBlit1(SDL_Surface * surface, int complex);
    1.87 +extern SDL_loblit SDL_CalculateBlitN(SDL_Surface * surface, int complex);
    1.88 +extern SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface * surface, int complex);
    1.89  
    1.90  /*
    1.91   * Useful macros for blitting routines
    1.92 @@ -520,3 +521,4 @@
    1.93  #endif
    1.94  
    1.95  #endif /* _SDL_blit_h */
    1.96 +/* vi: set ts=4 sw=4 expandtab: */