Commit f369e4fa authored by Ryan C. Gordon's avatar Ryan C. Gordon

Patched to compile on some platforms.

parent e9174b82
...@@ -170,27 +170,27 @@ SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip, ...@@ -170,27 +170,27 @@ SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip,
int x, y, i; int x, y, i;
if (!points) { if (!points) {
// TODO error message /* TODO error message */
return SDL_FALSE; return SDL_FALSE;
} }
if (count < 1) { if (count < 1) {
// TODO error message /* TODO error message */
return SDL_FALSE; return SDL_FALSE;
} }
if (clip) { if (clip) {
SDL_bool added = SDL_FALSE;
const int clip_minx = clip->x;
const int clip_miny = clip->y;
const int clip_maxx = clip->x+clip->w-1;
const int clip_maxy = clip->y+clip->h-1;
/* Special case for empty rectangle */ /* Special case for empty rectangle */
if (SDL_RectEmpty(clip)) { if (SDL_RectEmpty(clip)) {
return SDL_FALSE; return SDL_FALSE;
} }
SDL_bool added = SDL_FALSE;
int clip_minx = clip->x;
int clip_miny = clip->y;
int clip_maxx = clip->x+clip->w-1;
int clip_maxy = clip->y+clip->h-1;
for (i = 0; i < count; ++i) { for (i = 0; i < count; ++i) {
x = points[i].x; x = points[i].x;
y = points[i].y; y = points[i].y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment