1*19978Sdist /* 2*19978Sdist * Copyright (c) 1980 Regents of the University of California. 3*19978Sdist * All rights reserved. The Berkeley software License Agreement 4*19978Sdist * specifies the terms and conditions for redistribution. 5*19978Sdist */ 6*19978Sdist 715477Sralph #ifndef lint 8*19978Sdist static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 05/07/85"; 9*19978Sdist #endif not lint 1015477Sralph 1115477Sralph #include "hp7221.h" 1215477Sralph 1315477Sralph space(x0,y0,x1,y1) 1415477Sralph int x0,y0,x1,y1; 1515477Sralph { 1615477Sralph double scalex, scaley; 1715477Sralph lowx = x0; 1815477Sralph lowy = y0; 1915477Sralph scalex = XMAX/(double)(x1-lowx); 2015477Sralph scaley = YMAX/(double)(y1-lowy); 2115477Sralph scale = scalex < scaley ? scalex : scaley; 2215477Sralph } 23