static char sccsid
[] = "@(#)subr.c 4.1 (Berkeley) %G%";
/* x position input is -2047 to +2047, output must be 0 to PAGSIZ*HORZRES */
/* the computation is newx = xp*(PAGSIZ*HORZRES)/4096 */
return (xoffset
+ xp
/xscale
);
/* see description of xconv */
int dx
,dy
,remx
,remy
,pts
,i
;
if(xnow
== ix
&& ynow
== iy
)return;
command
= COM
|PENUP
|((dx
<0)<<1)|(dy
<0);
xa
= (xi
- obotx
) * scalex
+ botx
;
ya
= (yi
- oboty
) *scaley
+boty
;