comparison include/SDL_surface.h @ 2807:365fe1a2aad5

The SDL_RLEACCEL flag is respected in SDL_ConvertSurface(), per the docs. Fixed saving BMP files of surfaces with an alpha channel.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 11:26:01 +0000
parents 12ea0fdc0df2
children 7e5ff6cd05bf
comparison
equal deleted inserted replaced
2806:938aa47f903a 2807:365fe1a2aad5
99 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface. 99 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
100 * If the depth is greater than 8 bits, the pixel format is set using the 100 * If the depth is greater than 8 bits, the pixel format is set using the
101 * flags '[RGB]mask'. 101 * flags '[RGB]mask'.
102 * If the function runs out of memory, it will return NULL. 102 * If the function runs out of memory, it will return NULL.
103 * 103 *
104 * The 'flags' tell what kind of surface to create. 104 * The 'flags' are obsolete and should be set to 0.
105 * SDL_SRCCOLORKEY indicates that the surface will be used for colorkey blits.
106 * SDL_SRCALPHA means that the surface will be used for alpha blits.
107 */ 105 */
108 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface 106 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
109 (Uint32 flags, int width, int height, int depth, 107 (Uint32 flags, int width, int height, int depth,
110 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); 108 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
111 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels, 109 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,