# HG changeset patch # User michael # Date 1156020902 0 # Node ID eb4a515197da6033a09209fdc5a7e9d15af82293 # Parent 10c577c3761775ed37b6c952b2e2f0512fea373d SWAP diff -r 10c577c37617 -r eb4a515197da mpegvideo.c --- a/mpegvideo.c Sat Aug 19 20:22:57 2006 +0000 +++ b/mpegvideo.c Sat Aug 19 20:55:02 2006 +0000 @@ -1687,7 +1687,7 @@ * @param color color of the arrow */ static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color){ - int t, x, y, fr, f; + int x, y, fr, f; sx= clip(sx, 0, w-1); sy= clip(sy, 0, h-1); @@ -1698,8 +1698,8 @@ if(ABS(ex - sx) > ABS(ey - sy)){ if(sx > ex){ - t=sx; sx=ex; ex=t; - t=sy; sy=ey; ey=t; + SWAP(int, sx, ex); + SWAP(int, sy, ey); } buf+= sx + sy*stride; ex-= sx; @@ -1712,8 +1712,8 @@ } }else{ if(sy > ey){ - t=sx; sx=ex; ex=t; - t=sy; sy=ey; ey=t; + SWAP(int, sx, ex); + SWAP(int, sy, ey); } buf+= sx + sy*stride; ey-= sy;