SDL_ConvertPixels() returns 0 on success

This commit is contained in:
Sam Lantinga 2011-10-31 02:44:21 -04:00
parent 4827ef3a38
commit a347411651
2 changed files with 3 additions and 1 deletions

View File

@ -355,6 +355,8 @@ extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
/**
* \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,
Uint32 src_format,

View File

@ -952,7 +952,7 @@ int SDL_ConvertPixels(int width, int height,
src = (Uint8*)src + src_pitch;
dst = (Uint8*)dst + dst_pitch;
}
return SDL_TRUE;
return 0;
}
if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src,