author | Sam Lantinga <slouken@libsdl.org> |
Fri, 11 Dec 2009 09:57:54 +0000 | |
changeset 3542 | 97eae5a705f9 |
parent 3541 | 0c429a5fda8a |
child 3543 | c2154674c0c1 |
--- a/src/video/SDL_rect.c Fri Dec 11 09:22:34 2009 +0000 +++ b/src/video/SDL_rect.c Fri Dec 11 09:57:54 2009 +0000 @@ -311,9 +311,7 @@ x1 = x; y1 = y; outcode1 = ComputeOutCode(rect, x, y); - } - - if (outcode2) { + } else { if (outcode2 & CODE_TOP) { y = recty1; x = x1 + ((x2 - x1) * (y - y1)) / (y2 - y1);