ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/lib4014/scale.c
Revision: 1.2
Committed: Sat Nov 15 02:13:37 2003 UTC (20 years, 6 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R6P1, rad3R6
Changes since 1.1: +10 -10 lines
Log Message:
Continued ANSIfication, and reduced other compile warnings.

File Contents

# User Rev Content
1 greg 1.1 #ifndef lint
2 schorsch 1.2 static const char RCSid[] = "$Id: scale.c,v 1.1 2003/02/22 02:07:26 greg Exp $";
3 greg 1.1 #endif
4    
5 schorsch 1.2 #include "local4014.h"
6     #include "lib4014.h"
7    
8     extern void
9     scale(
10     char i,
11     float x,
12     float y;
13     )
14 greg 1.1 {
15     switch(i) {
16     default:
17     return;
18     case 'c':
19     x *= 2.54;
20     y *= 2.54;
21     case 'i':
22     x /= 200;
23     y /= 200;
24     case 'u':
25     scalex = 1/x;
26     scaley = 1/y;
27     }
28     scaleflag = 1;
29     }