1*48504Sbostic /*- 2*48504Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48504Sbostic * All rights reserved. 4*48504Sbostic * 5*48504Sbostic * %sccs.include.proprietary.c% 619851Sdist */ 719851Sdist 815423Sralph #ifndef lint 9*48504Sbostic static char sccsid[] = "@(#)space.c 5.3 (Berkeley) 04/22/91"; 10*48504Sbostic #endif /* not lint */ 1115423Sralph 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