1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
13 |
|
#include <stdio.h> |
14 |
|
|
15 |
|
#include "color.h" |
16 |
+ |
#include "resolu.h" |
17 |
|
|
18 |
|
#define NCOLS 880 /* for wide carriage */ |
19 |
|
|
55 |
|
return(-1); |
56 |
|
} |
57 |
|
/* get picture dimensions */ |
58 |
< |
if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { |
58 |
> |
if (fgetresolu(&xres, &yres, input) < 0) { |
59 |
|
fprintf(stderr, "%s: bad picture size\n", fname); |
60 |
|
return(-1); |
61 |
|
} |
119 |
|
register int x; |
120 |
|
{ |
121 |
|
static int cerr[NCOLS]; |
122 |
< |
static int err, errp; |
123 |
< |
int b; |
122 |
> |
static int err; |
123 |
> |
int b, errp; |
124 |
|
register int isblack; |
125 |
|
|
126 |
|
b = normbright(clr); |