Fixed argument order to the line clipping routine
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403372
This commit is contained in:
parent
eb9f3bc6eb
commit
8efff3ff96
3 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,7 @@ SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2,
|
|||
}
|
||||
|
||||
/* Perform clipping */
|
||||
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) {
|
||||
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color)
|
|||
}
|
||||
|
||||
/* Perform clipping */
|
||||
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) {
|
||||
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -2125,7 +2125,7 @@ SDL_RenderLine(int x1, int y1, int x2, int y2)
|
|||
real_rect.y = 0;
|
||||
real_rect.w = window->w;
|
||||
real_rect.h = window->h;
|
||||
if (!SDL_IntersectRectAndLine(&real_rect, &x1, &x2, &y1, &y2)) {
|
||||
if (!SDL_IntersectRectAndLine(&real_rect, &x1, &y1, &x2, &y2)) {
|
||||
return (0);
|
||||
}
|
||||
return renderer->RenderLine(renderer, x1, y1, x2, y2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue