1
0
Files
irix-657m-src/eoe/lib/libplot/t4014/scale.c
2022-09-29 17:59:04 +03:00

32 lines
560 B
C

/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "$Revision: 1.2 $"
extern float scalex;
extern float scaley;
extern int scaleflag;
void
scale(char i, float x, float y)
{
switch(i) {
default:
return;
case 'c':
x *= 2.54;
y *= 2.54;
case 'i':
x /= 200;
y /= 200;
case 'u':
scalex = 1/x;
scaley = 1/y;
}
scaleflag = 1;
}