summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2012-01-22 18:37:46 -0500
committerSam Lantinga <slouken@libsdl.org>2012-01-22 18:37:46 -0500
commit8f925a68c23654f8e287fee1c9d8be89e321b361 (patch)
treed31b03ef3d5d8343b5b4c2b56fff72b235227a18 /include
parent46c78936612606a1ea4108e270f56e196c14695a (diff)
Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface()
Diffstat (limited to 'include')
-rw-r--r--include/SDL_surface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/SDL_surface.h b/include/SDL_surface.h
index 3f87bbea..65633542 100644
--- a/include/SDL_surface.h
+++ b/include/SDL_surface.h
@@ -51,6 +51,7 @@ extern "C" {
* Used internally (read-only).
*/
/*@{*/
+#define SDL_SWSURFACE 0 /**< Just here for compatibility */
#define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
#define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
#define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */
@@ -208,10 +209,12 @@ extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface,
* \brief Sets the color key (transparent pixel) in a blittable surface.
*
* \param surface The surface to update
- * \param flag Non-zero to enable colorkey and 0 to disable colorkey
+ * \param flag Non-zero to enable colorkey and 0 to disable colorkey
* \param key The transparent pixel in the native surface format
*
* \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,
int flag, Uint32 key);