changeset 24279:7265900f19d9

Simplify code by using FFSWAP
author voroshil
date Wed, 29 Aug 2007 18:11:09 +0000
parents 2f47e955fa13
children c1d941c2d9a0
files stream/tvi_vbi.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;