Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface()
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 18:37:46 -0500
changeset 62574b6e961362fb
parent 6256 1d905b13b102
child 6258 fce7ce72677b
Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface()
include/SDL_surface.h
     1.1 --- a/include/SDL_surface.h	Sun Jan 22 18:11:41 2012 -0500
     1.2 +++ b/include/SDL_surface.h	Sun Jan 22 18:37:46 2012 -0500
     1.3 @@ -51,6 +51,7 @@
     1.4   *  Used internally (read-only).
     1.5   */
     1.6  /*@{*/
     1.7 +#define SDL_SWSURFACE       0           /**< Just here for compatibility */
     1.8  #define SDL_PREALLOC        0x00000001  /**< Surface uses preallocated memory */
     1.9  #define SDL_RLEACCEL        0x00000002  /**< Surface is RLE encoded */
    1.10  #define SDL_DONTFREE        0x00000004  /**< Surface is referenced internally */
    1.11 @@ -208,10 +209,12 @@
    1.12   *  \brief Sets the color key (transparent pixel) in a blittable surface.
    1.13   *  
    1.14   *  \param surface The surface to update
    1.15 - *  \param flag Non-zero to enable colorkey and 0 to disable colorkey 
    1.16 + *  \param flag Non-zero to enable colorkey and 0 to disable colorkey
    1.17   *  \param key The transparent pixel in the native surface format
    1.18   *  
    1.19   *  \return 0 on success, or -1 if the surface is not valid
    1.20 + *
    1.21 + *  You can pass SDL_RLEACCEL to enable RLE accelerated blits.
    1.22   */
    1.23  extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
    1.24                                              int flag, Uint32 key);