1*48518Sbostic /*- 2*48518Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*48518Sbostic * All rights reserved. 4*48518Sbostic * 5*48518Sbostic * %sccs.include.proprietary.c% 619978Sdist */ 719978Sdist 815477Sralph #ifndef lint 9*48518Sbostic static char sccsid[] = "@(#)space.c 5.2 (Berkeley) 04/22/91"; 10*48518Sbostic #endif /* not lint */ 1115477Sralph 1215477Sralph #include "hp7221.h" 1315477Sralph 1415477Sralph space(x0,y0,x1,y1) 1515477Sralph int x0,y0,x1,y1; 1615477Sralph { 1715477Sralph double scalex, scaley; 1815477Sralph lowx = x0; 1915477Sralph lowy = y0; 2015477Sralph scalex = XMAX/(double)(x1-lowx); 2115477Sralph scaley = YMAX/(double)(y1-lowy); 2215477Sralph scale = scalex < scaley ? scalex : scaley; 2315477Sralph } 24