# HG changeset patch # User voroshil # Date 1188411069 0 # Node ID 7265900f19d975e7ba8a987b16d5b65d70815863 # Parent 2f47e955fa13ea5f0dc54eab5bc3491b91f38e53 Simplify code by using FFSWAP diff -r 2f47e955fa13 -r 7265900f19d9 stream/tvi_vbi.c --- a/stream/tvi_vbi.c Wed Aug 29 17:46:33 2007 +0000 +++ b/stream/tvi_vbi.c Wed Aug 29 18:11:09 2007 +0000 @@ -601,10 +601,7 @@ if ((c&0x60)==0){ //control chars if(c>=0x08 && c<=0x09){//Flash/Steady - int tmp; - tmp=bg_color; - bg_color=fg_color; - fg_color=tmp; + FFSWAP(int,bg_color,fg_color); if(c==0x09){ p[i].fg=fg_color; p[i].bg=bg_color;