Commit 0c041192 authored by Sam Lantinga's avatar Sam Lantinga

SDL_ConvertPixels() returns 0 on success

parent ec5e765d
...@@ -355,6 +355,8 @@ extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat ...@@ -355,6 +355,8 @@ extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
/** /**
* \brief Copy a block of pixels of one format to another format * \brief Copy a block of pixels of one format to another format
*
* \return 0 on success, or -1 if there was an error
*/ */
extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height, extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height,
Uint32 src_format, Uint32 src_format,
......
...@@ -952,7 +952,7 @@ int SDL_ConvertPixels(int width, int height, ...@@ -952,7 +952,7 @@ int SDL_ConvertPixels(int width, int height,
src = (Uint8*)src + src_pitch; src = (Uint8*)src + src_pitch;
dst = (Uint8*)dst + dst_pitch; dst = (Uint8*)dst + dst_pitch;
} }
return SDL_TRUE; return 0;
} }
if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src, if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment