include/SDL_video.h
changeset 2267 c785543d1843
parent 2266 e61ad15a205f
child 2275 12ea0fdc0df2
     1.1 --- a/include/SDL_video.h	Sat Aug 18 01:44:21 2007 +0000
     1.2 +++ b/include/SDL_video.h	Sat Aug 18 05:39:09 2007 +0000
     1.3 @@ -265,7 +265,7 @@
     1.4  /* These are the currently supported flags for the SDL_surface */
     1.5  /* Used internally (read-only) */
     1.6  #define SDL_PREALLOC        0x00000001  /* Surface uses preallocated memory */
     1.7 -#define SDL_RLEACCEL        0x00000001  /* Surface is RLE encoded */
     1.8 +#define SDL_RLEACCEL        0x00000002  /* Surface is RLE encoded */
     1.9  
    1.10  /* Evaluates to true if the surface needs to be locked before access */
    1.11  #define SDL_MUSTLOCK(S)	(((S)->flags & SDL_RLEACCEL) != 0)
    1.12 @@ -1407,7 +1407,8 @@
    1.13   * \note If RLE is enabled, colorkey and alpha blending blits are much faster,
    1.14   *       but the surface must be locked before directly accessing the pixels.
    1.15   */
    1.16 -extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface *surface, int flag);
    1.17 +extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface,
    1.18 +                                              int flag);
    1.19  
    1.20  /*
    1.21   * \fn int SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key)
    1.22 @@ -1420,7 +1421,8 @@
    1.23   *
    1.24   * \return 0 on success, or -1 if the surface is not valid
    1.25   */
    1.26 -extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key);
    1.27 +extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
    1.28 +                                            Uint32 flag, Uint32 key);
    1.29  
    1.30  /**
    1.31   * \fn int SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b)
    1.32 @@ -1436,7 +1438,7 @@
    1.33   *
    1.34   * \sa SDL_GetSurfaceColorMod()
    1.35   */
    1.36 -extern DECLSPEC int SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface,
    1.37 +extern DECLSPEC int SDLCALL SDL_SetSurfaceColorMod(SDL_Surface * surface,
    1.38                                                     Uint8 r, Uint8 g, Uint8 b);
    1.39  
    1.40  
    1.41 @@ -1454,7 +1456,7 @@
    1.42   *
    1.43   * \sa SDL_SetSurfaceColorMod()
    1.44   */
    1.45 -extern DECLSPEC int SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface,
    1.46 +extern DECLSPEC int SDLCALL SDL_GetSurfaceColorMod(SDL_Surface * surface,
    1.47                                                     Uint8 * r, Uint8 * g,
    1.48                                                     Uint8 * b);
    1.49  
    1.50 @@ -1470,7 +1472,7 @@
    1.51   *
    1.52   * \sa SDL_GetSurfaceAlphaMod()
    1.53   */
    1.54 -extern DECLSPEC int SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface,
    1.55 +extern DECLSPEC int SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface * surface,
    1.56                                                     Uint8 alpha);
    1.57  
    1.58  /**
    1.59 @@ -1485,7 +1487,7 @@
    1.60   *
    1.61   * \sa SDL_SetSurfaceAlphaMod()
    1.62   */
    1.63 -extern DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface,
    1.64 +extern DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface * surface,
    1.65                                                     Uint8 * alpha);
    1.66  
    1.67  /**
    1.68 @@ -1500,7 +1502,7 @@
    1.69   *
    1.70   * \sa SDL_GetSurfaceBlendMode()
    1.71   */
    1.72 -extern DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface *surface,
    1.73 +extern DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface * surface,
    1.74                                                      int blendMode);
    1.75  
    1.76  /**
    1.77 @@ -1515,7 +1517,7 @@
    1.78   *
    1.79   * \sa SDL_SetSurfaceBlendMode()
    1.80   */
    1.81 -extern DECLSPEC int SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surface,
    1.82 +extern DECLSPEC int SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface * surface,
    1.83                                                      int *blendMode);
    1.84  
    1.85  /**
    1.86 @@ -1532,7 +1534,7 @@
    1.87   *
    1.88   * \sa SDL_GetSurfaceScaleMode()
    1.89   */
    1.90 -extern DECLSPEC int SDLCALL SDL_SetSurfaceScaleMode(SDL_Surface *surface,
    1.91 +extern DECLSPEC int SDLCALL SDL_SetSurfaceScaleMode(SDL_Surface * surface,
    1.92                                                      int scaleMode);
    1.93  
    1.94  /**
    1.95 @@ -1547,7 +1549,7 @@
    1.96   *
    1.97   * \sa SDL_SetSurfaceScaleMode()
    1.98   */
    1.99 -extern DECLSPEC int SDLCALL SDL_GetSurfaceScaleMode(SDL_Surface *surface,
   1.100 +extern DECLSPEC int SDLCALL SDL_GetSurfaceScaleMode(SDL_Surface * surface,
   1.101                                                      int *scaleMode);
   1.102  
   1.103  /*