Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SD…
Browse files Browse the repository at this point in the history
…L_CreateRGBSurface()
  • Loading branch information
slouken committed Jan 22, 2012
1 parent 27d5fc9 commit 6ad5c5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/SDL_surface.h
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6ad5c5a

Please sign in to comment.