Software scaling support. Not very fast, but it seems to work.
This commit is contained in:
parent
20b4d9f762
commit
32d70d6f2b
3 changed files with 62 additions and 1 deletions
|
@ -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* */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue