Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

SDL_ConvertPixels() returns 0 on success

  • Loading branch information
slouken committed Oct 31, 2011
1 parent 084a57f commit 074180c12f71bb5e3dcbb302ae32f6f34859f39b
Showing with 3 additions and 1 deletion.
  1. +2 −0 include/SDL_surface.h
  2. +1 −1 src/video/SDL_surface.c
@@ -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,
@@ -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,

0 comments on commit 074180c

Please sign in to comment.