Switch uses of MIN() to SDL_min()

We're excluding files in src/hidapi to minimize the
diff against the upstream project.
This commit is contained in:
Eddy Jansson
2022-04-29 19:30:47 +02:00
committed by Sam Lantinga
parent ca26df3404
commit 6c2928b4be
4 changed files with 7 additions and 20 deletions

View File

@@ -61,11 +61,6 @@ typedef struct tColorY {
Uint8 y;
} tColorY;
/* !
\brief Returns maximum of two numbers a and b.
*/
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
/* !
\brief Number of guard rows added to destination surfaces.

View File

@@ -22,10 +22,6 @@
#ifndef SDL_rotate_h_
#define SDL_rotate_h_
#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
extern SDL_Surface *SDLgfx_rotateSurface(SDL_Surface * src, double angle, int smooth, int flipx, int flipy,
const SDL_Rect *rect_dest, double cangle, double sangle, const SDL_FPoint *center);
extern void SDLgfx_rotozoomSurfaceSizeTrig(int width, int height, double angle, const SDL_FPoint *center,