@@ -375,23 +375,26 @@ typedef int SDL_RendererLogicalPresentation;
375
375
#define SDL_SCALEMODE_BEST SDL_ScaleModeBest
376
376
#define SDL_SCALEMODE_LINEAR SDL_ScaleModeLinear
377
377
#define SDL_SCALEMODE_NEAREST SDL_ScaleModeNearest
378
- #define SDL_SetRenderClipRect (r , rect ) (SDL_RenderSetClipRect((r), (rect)) == 0)
379
378
380
379
#if !SDL_VERSION_ATLEAST (2 ,0 ,12 )
381
380
typedef int SDL_ScaleMode ;
382
381
#endif
383
382
383
+ static inline SDL_bool SDL_SetRenderClipRect (SDL_Renderer * render ,
384
+ SDL_Rect * rect )
385
+ {
386
+ return (SDL_bool )(SDL_RenderSetClipRect (render , rect ) == 0 );
387
+ }
388
+
384
389
static inline SDL_bool SDL_SetRenderLogicalPresentation (SDL_Renderer * render ,
385
390
int w , int h , SDL_RendererLogicalPresentation p , SDL_ScaleMode s )
386
391
{
387
- // Return value 0/-1 -> true/false
388
392
return (SDL_bool )(SDL_RenderSetLogicalSize (render , w , h ) == 0 );
389
393
}
390
394
391
395
static inline SDL_bool SDL_RenderTexture (SDL_Renderer * renderer ,
392
396
SDL_Texture * texture , const SDL_Rect_mzx * src_rect , const SDL_Rect_mzx * dest_rect )
393
397
{
394
- // Return value 0/-1 -> true/false
395
398
return (SDL_bool )(SDL_RenderCopy (renderer , texture , src_rect , dest_rect ) == 0 );
396
399
}
397
400
#endif
0 commit comments