# | Line 52 | Line 52 | int dither = 1; /* dither colors? */ | |
---|---|---|
52 | ||
53 | int bradj = 0; /* brightness adjustment */ | |
54 | ||
55 | + | int ncolors = 0; /* number of colors requested */ |
56 | + | |
57 | char *progname; | |
58 | ||
59 | ||
# | Line 59 | Line 61 | main(argc, argv) | |
61 | int argc; | |
62 | char *argv[]; | |
63 | { | |
62 | – | int ncolors = 0; |
64 | int bitsperpix; | |
65 | int i; | |
66 | #ifdef MSDOS | |
# | Line 228 | Line 229 | int x, y; | |
229 | ||
230 | getrow(y); | |
231 | if (greyscale) | |
232 | < | return(normbright(scanln[x])); |
232 | > | return((normbright(scanln[x])*ncolors)>>8); |
233 | if (pixscan != NULL) | |
234 | return(pixscan[x]); | |
235 | return(samplefac ? neu_map_pixel(scanln[x]) : map_pixel(scanln[x])); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |