[BACK]Return to if.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / plot

Diff for /OpenXM_contrib2/asir2000/plot/if.c between version 1.19 and 1.20

version 1.19, 2005/12/21 23:18:16 version 1.20, 2006/11/09 03:41:47
Line 45 
Line 45 
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  *   *
  * $OpenXM: OpenXM_contrib2/asir2000/plot/if.c,v 1.18 2005/08/04 04:34:49 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/plot/if.c,v 1.19 2005/12/21 23:18:16 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 223  int memory_plot(NODE arg,LIST *bytes)
Line 223  int memory_plot(NODE arg,LIST *bytes)
   
 int plotover(NODE arg)  int plotover(NODE arg)
 {  {
         int index;          int index, org_color;
         P formula;          P formula;
         struct canvas *can;          struct canvas *can;
         struct canvas fakecan;          struct canvas fakecan;
Line 232  int plotover(NODE arg)
Line 232  int plotover(NODE arg)
         index = QTOS((Q)ARG0(arg));          index = QTOS((Q)ARG0(arg));
         formula = (P)ARG1(arg);          formula = (P)ARG1(arg);
         can = canvas[index];          can = canvas[index];
           org_color = can->color;
         if ( !can->window )          if ( !can->window )
                 return -1;                  return -1;
         get_vars_recursive((Obj)formula,&vl);          get_vars_recursive((Obj)formula,&vl);
Line 254  int plotover(NODE arg)
Line 255  int plotover(NODE arg)
         } else          } else
                 ifplotmain(&fakecan);                  ifplotmain(&fakecan);
         copy_to_canvas(&fakecan);          copy_to_canvas(&fakecan);
           can->color = org_color;
         return index;          return index;
 }  }
   

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>