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