# HG changeset patch # User Sam Lantinga # Date 1231139268 0 # Node ID f3d7226a8dfdee1c129feb5a31bbc5b477d15af7 # Parent 699d68ef2acaeaa4bc49db155d6424bf7fa861c4 Fixed lines intersecting the top corners of a rectangle diff -r 699d68ef2aca -r f3d7226a8dfd src/video/SDL_rect.c --- 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; }