[librsvg: 10/12] filter: use getter for the current color
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 10/12] filter: use getter for the current color
- Date: Tue, 24 Apr 2018 23:15:54 +0000 (UTC)
commit ba1f568de5ed245ace0cd0ac9b6846a896f95c01
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Apr 23 23:50:15 2018 +0200
filter: use getter for the current color
librsvg/rsvg-filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/librsvg/rsvg-filter.c b/librsvg/rsvg-filter.c
index abb8cb68..0a74ddd0 100644
--- a/librsvg/rsvg-filter.c
+++ b/librsvg/rsvg-filter.c
@@ -5068,7 +5068,7 @@ rsvg_filter_primitive_diffuse_lighting_set_atts (RsvgNode *node, gpointer impl,
case RSVG_CSS_COLOR_SPEC_CURRENT_COLOR:
state = rsvg_state_new ();
rsvg_state_reconstruct (state, node);
- filter->lightingcolor = state->current_color;
+ filter->lightingcolor = rsvg_state_get_current_color (state);
break;
case RSVG_CSS_COLOR_SPEC_ARGB:
@@ -5278,7 +5278,7 @@ rsvg_filter_primitive_specular_lighting_set_atts (RsvgNode *node, gpointer impl,
case RSVG_CSS_COLOR_SPEC_CURRENT_COLOR:
state = rsvg_state_new ();
rsvg_state_reconstruct (state, node);
- filter->lightingcolor = state->current_color;
+ filter->lightingcolor = rsvg_state_get_current_color (state);
break;
case RSVG_CSS_COLOR_SPEC_ARGB:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]