Commits
Marcus Calhoun-Lopez authored d92ca8d4eff
20 20 | (cinfo.output_height*2 != height ) || |
21 21 | |
22 22 | if (tile_length < INT_MAX) |
23 23 | fseek (ifp, get4(), SEEK_SET); |
24 24 | jpeg_stdio_src (&cinfo, ifp); |
25 25 | - jpeg_read_header (&cinfo, TRUE); |
26 26 | + jpeg_read_header (&cinfo, (boolean) TRUE); |
27 27 | jpeg_start_decompress (&cinfo); |
28 28 | buf = (*cinfo.mem->alloc_sarray) |
29 29 | ((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width*3, 1); |
30 - | |
30 + | |
31 31 | if (make[0] == 'O') { |
32 32 | i = find_green (12, 32, 1188864, 3576832); |
33 33 | c = find_green (12, 32, 2383920, 2387016); |
34 34 | - if (abs(i) < abs(c)) { |
35 35 | + if (i < c) { |
36 36 | SWAP(i,c); |
37 37 | load_flags = 24; |
38 38 | } |