Patched to compile on some platforms.
This commit is contained in:
parent
e9174b8226
commit
f369e4fa7c
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue