Mercurial > sdl-ios-xcode
changeset 3004:f3d7226a8dfd
Fixed lines intersecting the top corners of a rectangle
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 05 Jan 2009 07:07:48 +0000 |
parents | 699d68ef2aca |
children | 7b7a25d08829 |
files | src/video/SDL_rect.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_rect.c Mon Jan 05 07:04:54 2009 +0000 +++ b/src/video/SDL_rect.c Mon Jan 05 07:07:48 2009 +0000 @@ -150,7 +150,7 @@ /* 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; }