Skip to content

Commit

Permalink
Equally lighten and darken flags.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dougfelt committed Apr 27, 2017
1 parent 4641822 commit 3ae82ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions waveflag.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ wave_mesh_create (double aspect, int alpha)

if (alpha)
{
cairo_mesh_pattern_set_corner_color_rgba(pattern, 0, 0, 0, 0, 0);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 1, 0, 0, 0, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 2, 0, 0, 0, 1);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 3, 0, 0, 0, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 0, 1, 1, 1, .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, .5);
cairo_mesh_pattern_set_corner_color_rgba(pattern, 3,.5,.5,.5, .5);
}
else
{
Expand Down

0 comments on commit 3ae82ce

Please sign in to comment.