… | |
… | |
435 | if (new_flags != flags) |
435 | if (new_flags != flags) |
436 | { |
436 | { |
437 | flags = new_flags; |
437 | flags = new_flags; |
438 | changed++; |
438 | changed++; |
439 | } |
439 | } |
440 | //fprintf( stderr, "flags = %lX, scale = %ux%u, align=%+d%+d\n", |
440 | //fprintf (stderr, "flags = %lX, scale = %ux%u, align=%+d%+d\n", |
441 | // flags, h_scale, v_scale, h_align, v_align); |
441 | // flags, h_scale, v_scale, h_align, v_align); |
442 | return (changed > 0); |
442 | return (changed > 0); |
443 | } |
443 | } |
444 | |
444 | |
445 | # ifdef HAVE_AFTERIMAGE |
445 | # ifdef HAVE_AFTERIMAGE |
… | |
… | |
984 | { |
984 | { |
985 | c.r = (c.r * shade) / 100; |
985 | c.r = (c.r * shade) / 100; |
986 | c.g = (c.g * shade) / 100; |
986 | c.g = (c.g * shade) / 100; |
987 | c.b = (c.b * shade) / 100; |
987 | c.b = (c.b * shade) / 100; |
988 | } |
988 | } |
989 | else if( shade > 100 && shade < 200) |
989 | else if (shade > 100 && shade < 200) |
990 | { |
990 | { |
991 | c.r = (c.r * (200 - shade)) / 100; |
991 | c.r = (c.r * (200 - shade)) / 100; |
992 | c.g = (c.g * (200 - shade)) / 100; |
992 | c.g = (c.g * (200 - shade)) / 100; |
993 | c.b = (c.b * (200 - shade)) / 100; |
993 | c.b = (c.b * (200 - shade)) / 100; |
994 | } |
994 | } |
… | |
… | |
1201 | pmap_depth = target->depth; |
1201 | pmap_depth = target->depth; |
1202 | } |
1202 | } |
1203 | if (pmap_depth != result->depth) |
1203 | if (pmap_depth != result->depth) |
1204 | { |
1204 | { |
1205 | /* Bad Match error will ensue ! stupid X !!!! */ |
1205 | /* Bad Match error will ensue ! stupid X !!!! */ |
1206 | if( result->depth == 24 && pmap_depth == 32) |
1206 | if (result->depth == 24 && pmap_depth == 32) |
1207 | result->depth = 32; |
1207 | result->depth = 32; |
1208 | else if( result->depth == 32 && pmap_depth == 24) |
1208 | else if (result->depth == 32 && pmap_depth == 24) |
1209 | result->depth = 24; |
1209 | result->depth = 24; |
1210 | else |
1210 | else |
1211 | { |
1211 | { |
1212 | /* TODO: implement image recoding */ |
1212 | /* TODO: implement image recoding */ |
1213 | } |
1213 | } |