X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fmovie.git;a=blobdiff_plain;f=movie.c;h=f5ef008824abef6f768909630d4d6e06637bd554;hp=f279449d03ee3ce1a1dfd9fc34da31fe2ccad2ab;hb=9538b68a7cccd97a1c7aa3a933a4a100ae55ec99;hpb=2a9fb276c6db0dd6b2fd5764c45f0e589e3624f2 diff --git a/movie.c b/movie.c index f279449..f5ef008 100644 --- a/movie.c +++ b/movie.c @@ -70,7 +70,7 @@ GetNextPoint (void) static int x, y; int next; next = (cur + 1) % psize; - if (IS_CENTER (points[next].x, points[next].y, rect.x, rect.y) || cur == -1) + if ((points[next].x == rect.x && points[next].y == rect.y) || cur == -1) { cur = next; next = (cur + 1) % psize; @@ -92,8 +92,8 @@ GetNextPoint (void) x = x1; y = y1; } - rect.x = (swap ? y : x) - WIDTH/2; - rect.y = (swap ? x : y) - HEIGHT/2; + rect.x = (swap ? y : x); + rect.y = (swap ? x : y); (x2 < x1) ? x-- : x++; err += ABS (inc); if (err >= ABS (thre))