Commit | Line | Data |
---|---|---|
b059c7be DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
0f869949 | 7 | #ifndef lint |
b059c7be DF |
8 | static char sccsid[] = "@(#)scale.c 5.1 (Berkeley) %G%"; |
9 | #endif not lint | |
0f869949 JK |
10 | |
11 | extern float scalex; | |
12 | extern float scaley; | |
13 | extern int scaleflag; | |
14 | scale(i,x,y) | |
15 | char i; | |
16 | float x,y; | |
17 | { | |
18 | switch(i) { | |
19 | default: | |
20 | return; | |
21 | case 'c': | |
22 | x *= 2.54; | |
23 | y *= 2.54; | |
24 | case 'i': | |
25 | x /= 200; | |
26 | y /= 200; | |
27 | case 'u': | |
28 | scalex = 1/x; | |
29 | scaley = 1/y; | |
30 | } | |
31 | scaleflag = 1; | |
32 | } |