7 static double prevdx
, prevdy
;
9 double defx
, defy
, dx
, dy
;
12 static int xtab
[] = { 1, 0, -1, 0 }; /* R=0, U=1, L=2, D=3 */
13 static int ytab
[] = { 0, 1, 0, -1 };
16 defx
= getfval("movewid");
17 defy
= getfval("moveht");
19 for (i
= 0; i
< nattr
; i
++) {
23 savetext(ap
->a_sub
, ap
->a_val
.p
);
31 dx
-= (ap
->a_sub
==DEFAULT
) ? defx
: ap
->a_val
.f
;
36 dx
+= (ap
->a_sub
==DEFAULT
) ? defx
: ap
->a_val
.f
;
41 dy
+= (ap
->a_sub
==DEFAULT
) ? defy
: ap
->a_val
.f
;
46 dy
-= (ap
->a_sub
==DEFAULT
) ? defy
: ap
->a_val
.f
;
52 dx
= ppos
->o_x
- curx
;
53 dy
= ppos
->o_y
- cury
;
83 p
= makenode(MOVE
, 0);
84 dprintf("M %g %g\n", curx
, cury
);