Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface()

This commit is contained in:
Sam Lantinga 2012-01-22 18:37:46 -05:00
parent 5ef4144446
commit 4f6d606c93

View file

@ -51,6 +51,7 @@ extern "C" {
* Used internally (read-only). * Used internally (read-only).
*/ */
/*@{*/ /*@{*/
#define SDL_SWSURFACE 0 /**< Just here for compatibility */
#define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */ #define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
#define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */ #define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
#define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */ #define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */
@ -212,6 +213,8 @@ extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface,
* \param key The transparent pixel in the native surface format * \param key The transparent pixel in the native surface format
* *
* \return 0 on success, or -1 if the surface is not valid * \return 0 on success, or -1 if the surface is not valid
*
* You can pass SDL_RLEACCEL to enable RLE accelerated blits.
*/ */
extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface, extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
int flag, Uint32 key); int flag, Uint32 key);