From 074180c12f71bb5e3dcbb302ae32f6f34859f39b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 31 Oct 2011 02:44:21 -0400 Subject: [PATCH] SDL_ConvertPixels() returns 0 on success --- include/SDL_surface.h | 2 ++ src/video/SDL_surface.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/SDL_surface.h b/include/SDL_surface.h index 77b582586..f8c95b275 100644 --- a/include/SDL_surface.h +++ b/include/SDL_surface.h @@ -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, diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index b89adcbd0..62c5f5f3d 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -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,