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 authored and Sam Lantinga committed 2022-04-29 10:39:51 -07:00
1 parent ca26df3404
commit 6c2928b4be
4 files changed
+7 -20

No files matched your search

-5
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.
-4
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,