SDL_ConvertPixels() returns 0 on success
authorSam Lantinga <slouken@libsdl.org>
Mon, 31 Oct 2011 02:44:21 -0400
changeset 604169d7539ff51f
parent 6040 08aa9c1dfed6
child 6042 ff2ab1e8d516
SDL_ConvertPixels() returns 0 on success
include/SDL_surface.h
src/video/SDL_surface.c
     1.1 --- a/include/SDL_surface.h	Mon Oct 31 01:59:54 2011 -0400
     1.2 +++ b/include/SDL_surface.h	Mon Oct 31 02:44:21 2011 -0400
     1.3 @@ -355,6 +355,8 @@
     1.4  
     1.5  /**
     1.6   * \brief Copy a block of pixels of one format to another format
     1.7 + *  
     1.8 + *  \return 0 on success, or -1 if there was an error
     1.9   */
    1.10  extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height,
    1.11                                                Uint32 src_format,
     2.1 --- a/src/video/SDL_surface.c	Mon Oct 31 01:59:54 2011 -0400
     2.2 +++ b/src/video/SDL_surface.c	Mon Oct 31 02:44:21 2011 -0400
     2.3 @@ -952,7 +952,7 @@
     2.4              src = (Uint8*)src + src_pitch;
     2.5              dst = (Uint8*)dst + dst_pitch;
     2.6          }
     2.7 -        return SDL_TRUE;
     2.8 +        return 0;
     2.9      }
    2.10  
    2.11      if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src,