Equally lighten and darken flags.

Apply patch from upstream 9c4f5f11802c 'Adjust shadow to equally
darken and lighten'.  The waved flags were noticeably darker than
the source image, for example the blue of the Russian flag was too
dark.
pull/116/head
Doug Felt 2017-04-27 15:06:55 -07:00
parent 46418225ff
commit 3ae82ce23d
1 changed files with 4 additions and 4 deletions

View File

@ -98,10 +98,10 @@ wave_mesh_create (double aspect, int alpha)
if (alpha) if (alpha)
{ {
cairo_mesh_pattern_set_corner_color_rgba(pattern, 0, 0, 0, 0, 0); cairo_mesh_pattern_set_corner_color_rgba(pattern, 0, 1, 1, 1, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 1, 0, 0, 0, .5); cairo_mesh_pattern_set_corner_color_rgba(pattern, 1,.5,.5,.5, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 2, 0, 0, 0, 1); cairo_mesh_pattern_set_corner_color_rgba(pattern, 2, 0, 0, 0, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 3, 0, 0, 0, .5); cairo_mesh_pattern_set_corner_color_rgba(pattern, 3,.5,.5,.5, .5);
} }
else else
{ {