[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.8 and 1.9

version 1.8, 2001/12/25 02:39:07 version 1.9, 2002/07/10 05:29:35
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.7 2001/10/09 01:36:27 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/plot/if.c,v 1.8 2001/12/25 02:39:07 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 301  int draw_obj(NODE arg)
Line 301  int draw_obj(NODE arg)
                         set_lasterror("draw_obj : invalid request");                          set_lasterror("draw_obj : invalid request");
                         return -1;                          return -1;
         }          }
           return 0;
   }
   
   int draw_string(NODE arg)
   {
           int index,x,y;
           char *str;
           NODE pos;
           struct canvas *can;
           int color;
   
           index = QTOS((Q)ARG0(arg));
           can = canvas[index];
           if ( !can || !can->window ) {
                   set_lasterror("draw_string : canvas does not exist");
                   return -1;
           }
   
           pos = BDY((LIST)ARG1(arg));
           str = BDY((STRING)ARG2(arg));
           if ( argc(arg) == 4 )
                   color = QTOS((Q)ARG3(arg));
           else
                   color = 0; /* black */
           x = (int)ToReal((Q)ARG0(pos));
           y = (int)ToReal((Q)ARG1(pos));
           draw_character_string(display,can,x,y,str,color);
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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