1*19851Sdist /* 2*19851Sdist * Copyright (c) 1980 Regents of the University of California. 3*19851Sdist * All rights reserved. The Berkeley software License Agreement 4*19851Sdist * specifies the terms and conditions for redistribution. 5*19851Sdist */ 6*19851Sdist 715423Sralph #ifndef lint 8*19851Sdist static char sccsid[] = "@(#)space.c 5.2 (Berkeley) 04/30/85"; 9*19851Sdist #endif not lint 1015423Sralph 11*19851Sdist 1215423Sralph #include "bg.h" 1315423Sralph 1415423Sralph space(x0,y0,x1,y1) 1515423Sralph int x0,y0,x1,y1; 1615423Sralph { 1715423Sralph double scalex, scaley; 1815423Sralph lowx = x0; 1915423Sralph lowy = y0; 2015423Sralph scalex = XMAX/(double)(x1-lowx); 2115423Sralph scaley = YMAX/(double)(y1-lowy); 2215423Sralph scale = scalex < scaley ? scalex : scaley; 2315423Sralph } 24