# HG changeset patch # User Sam Lantinga # Date 1229999908 0 # Node ID 27d8b12e0e8eed6a0d26f0f76402035f3e7c8f5c # Parent 3da0bb421d83d36210f73771e47186db3aee4307 Fixed argument order to the line clipping routine diff -r 3da0bb421d83 -r 27d8b12e0e8e src/video/SDL_blendline.c --- a/src/video/SDL_blendline.c Tue Dec 23 02:23:18 2008 +0000 +++ b/src/video/SDL_blendline.c Tue Dec 23 02:38:28 2008 +0000 @@ -204,7 +204,7 @@ } /* Perform clipping */ - if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { + if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { return (0); } diff -r 3da0bb421d83 -r 27d8b12e0e8e src/video/SDL_drawline.c --- a/src/video/SDL_drawline.c Tue Dec 23 02:23:18 2008 +0000 +++ b/src/video/SDL_drawline.c Tue Dec 23 02:38:28 2008 +0000 @@ -34,7 +34,7 @@ } /* Perform clipping */ - if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) { + if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) { return (0); } diff -r 3da0bb421d83 -r 27d8b12e0e8e src/video/SDL_video.c --- a/src/video/SDL_video.c Tue Dec 23 02:23:18 2008 +0000 +++ b/src/video/SDL_video.c Tue Dec 23 02:38:28 2008 +0000 @@ -2125,7 +2125,7 @@ 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);