From 3ae82ce23db05cb7e1f146823316d316ec360791 Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Thu, 27 Apr 2017 15:06:55 -0700 Subject: [PATCH] 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. --- waveflag.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/waveflag.c b/waveflag.c index 3c234e0af..7d04c13b2 100644 --- a/waveflag.c +++ b/waveflag.c @@ -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 {