mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
SDL_ConvertPixels() returns 0 on success
This commit is contained in:
parent
4827ef3a38
commit
a347411651
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user