1*15477Sralph #ifndef lint 2*15477Sralph static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 11/10/83"; 3*15477Sralph #endif 4*15477Sralph 5*15477Sralph #include "hp7221.h" 6*15477Sralph 7*15477Sralph space(x0,y0,x1,y1) 8*15477Sralph int x0,y0,x1,y1; 9*15477Sralph { 10*15477Sralph double scalex, scaley; 11*15477Sralph lowx = x0; 12*15477Sralph lowy = y0; 13*15477Sralph scalex = XMAX/(double)(x1-lowx); 14*15477Sralph scaley = YMAX/(double)(y1-lowy); 15*15477Sralph scale = scalex < scaley ? scalex : scaley; 16*15477Sralph } 17