From 3171d3d0a768290396bbf6c0f88ada0ddf81620a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 5 Jan 2009 07:07:48 +0000 Subject: [PATCH] Fixed lines intersecting the top corners of a rectangle --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403466 --- src/video/SDL_rect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_rect.c b/src/video/SDL_rect.c index 9be6e30e2..1710dda59 100644 --- a/src/video/SDL_rect.c +++ b/src/video/SDL_rect.c @@ -150,7 +150,7 @@ SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2, /* Check to see if entire line is to one side of rect */ if ((x1 < rectx1 && x2 < rectx1) || (x1 > rectx2 && x2 > rectx2) || - (y1 < recty1 && y2 < recty2) || (y1 > recty2 && y2 > recty2)) { + (y1 < recty1 && y2 < recty1) || (y1 > recty2 && y2 > recty2)) { return SDL_FALSE; }