Fixed argument order to the line clipping routine
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Dec 2008 02:38:28 +0000
changeset 291027d8b12e0e8e
parent 2909 3da0bb421d83
child 2911 45664f0e5f68
Fixed argument order to the line clipping routine
src/video/SDL_blendline.c
src/video/SDL_drawline.c
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_blendline.c	Tue Dec 23 02:23:18 2008 +0000
     1.2 +++ b/src/video/SDL_blendline.c	Tue Dec 23 02:38:28 2008 +0000
     1.3 @@ -204,7 +204,7 @@
     1.4      }
     1.5  
     1.6      /* Perform clipping */
     1.7 -    if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) {
     1.8 +    if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
     1.9          return (0);
    1.10      }
    1.11  
     2.1 --- a/src/video/SDL_drawline.c	Tue Dec 23 02:23:18 2008 +0000
     2.2 +++ b/src/video/SDL_drawline.c	Tue Dec 23 02:38:28 2008 +0000
     2.3 @@ -34,7 +34,7 @@
     2.4      }
     2.5  
     2.6      /* Perform clipping */
     2.7 -    if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &x2, &y1, &y2)) {
     2.8 +    if (!SDL_IntersectRectAndLine(&dst->clip_rect, &x1, &y1, &x2, &y2)) {
     2.9          return (0);
    2.10      }
    2.11  
     3.1 --- a/src/video/SDL_video.c	Tue Dec 23 02:23:18 2008 +0000
     3.2 +++ b/src/video/SDL_video.c	Tue Dec 23 02:38:28 2008 +0000
     3.3 @@ -2125,7 +2125,7 @@
     3.4      real_rect.y = 0;
     3.5      real_rect.w = window->w;
     3.6      real_rect.h = window->h;
     3.7 -    if (!SDL_IntersectRectAndLine(&real_rect, &x1, &x2, &y1, &y2)) {
     3.8 +    if (!SDL_IntersectRectAndLine(&real_rect, &x1, &y1, &x2, &y2)) {
     3.9          return (0);
    3.10      }
    3.11      return renderer->RenderLine(renderer, x1, y1, x2, y2);