Software scaling support. Not very fast, but it seems to work.

This commit is contained in:
Ken Rogoway 2011-02-14 11:50:18 -06:00
parent 20b4d9f762
commit 32d70d6f2b
3 changed files with 62 additions and 1 deletions

View file

@ -464,6 +464,17 @@ extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface * src,
SDL_Surface * dst,
const SDL_Rect * dstrect);
/**
* \brief Perform a fast, low quality, stretch blit between two surfaces of the
* different pixel formats.
*
* \note This function calls SDL_SoftStretch or SDL_LowerBlit.
*/
extern DECLSPEC int SDLCALL SDL_BlitScaled
(SDL_Surface * src, const SDL_Rect * srcrect,
SDL_Surface * dst, const SDL_Rect * dstrect);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
/* *INDENT-OFF* */