Commit 8efff3ff authored by Sam Lantinga's avatar Sam Lantinga

Fixed argument order to the line clipping routine

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403372
parent eb9f3bc6
...@@ -204,7 +204,7 @@ SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, ...@@ -204,7 +204,7 @@ SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2,
} }
/* Perform clipping */ /* Perform clipping */
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
return (0); return (0);
} }
......
...@@ -34,7 +34,7 @@ SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color) ...@@ -34,7 +34,7 @@ SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color)
} }
/* Perform clipping */ /* Perform clipping */
if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
return (0); return (0);
} }
......
...@@ -2125,7 +2125,7 @@ SDL_RenderLine(int x1, int y1, int x2, int y2) ...@@ -2125,7 +2125,7 @@ SDL_RenderLine(int x1, int y1, int x2, int y2)
real_rect.y = 0; real_rect.y = 0;
real_rect.w = window->w; real_rect.w = window->w;
real_rect.h = window->h; 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 (0);
} }
return renderer->RenderLine(renderer, x1, y1, x2, y2); return renderer->RenderLine(renderer, x1, y1, x2, y2);
......
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