Fixed lines intersecting the top corners of a rectangle
authorSam Lantinga <slouken@libsdl.org>
Mon, 05 Jan 2009 07:07:48 +0000
changeset 3004f3d7226a8dfd
parent 3003 699d68ef2aca
child 3005 7b7a25d08829
Fixed lines intersecting the top corners of a rectangle
src/video/SDL_rect.c
     1.1 --- a/src/video/SDL_rect.c	Mon Jan 05 07:04:54 2009 +0000
     1.2 +++ b/src/video/SDL_rect.c	Mon Jan 05 07:07:48 2009 +0000
     1.3 @@ -150,7 +150,7 @@
     1.4  
     1.5      /* Check to see if entire line is to one side of rect */
     1.6      if ((x1 < rectx1 && x2 < rectx1) || (x1 > rectx2 && x2 > rectx2) ||
     1.7 -        (y1 < recty1 && y2 < recty2) || (y1 > recty2 && y2 > recty2)) {
     1.8 +        (y1 < recty1 && y2 < recty1) || (y1 > recty2 && y2 > recty2)) {
     1.9          return SDL_FALSE;
    1.10      }
    1.11