Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile on some platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 18, 2011
1 parent 0ebc47b commit 8a7405e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/video/SDL_rect.c
Expand Up @@ -170,27 +170,27 @@ SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip,
int x, y, i;

if (!points) {
// TODO error message
/* TODO error message */
return SDL_FALSE;
}

if (count < 1) {
// TODO error message
/* TODO error message */
return SDL_FALSE;
}

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 */
if (SDL_RectEmpty(clip)) {
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) {
x = points[i].x;
y = points[i].y;
Expand Down

0 comments on commit 8a7405e

Please sign in to comment.