}
-/*****************************************************************************/
-/* Resolve actual shadow color by adjusting opacity. */
-/*****************************************************************************/
-guint
-gl_color_shadow (guint base_color,
- gdouble opacity,
- guint object_color)
-{
- guint color;
-
- color = gl_color_set_opacity (base_color,
- opacity * GL_COLOR_F_ALPHA (object_color));
-
- return color;
-}
-
/*****************************************************************************/
/* Convert gLabels color into a GdkColor */
guint gl_color_set_opacity (guint color,
- gdouble opacity);
+ gdouble opacity);
-guint gl_color_shadow (guint base_color,
- gdouble opacity,
- guint object_color);
/*
* Routines to convert to/from GdkColor.
}
shadow_color_node = gl_label_object_get_shadow_color (object);
+ shadow_line_color = gl_color_node_expand (shadow_color_node, record);
if (shadow_color_node->field_flag)
{
shadow_color_node->color = GL_COLOR_SHADOW_MERGE_DEFAULT;
}
shadow_opacity = gl_label_object_get_shadow_opacity (object);
- shadow_line_color = gl_color_shadow (shadow_color_node->color, shadow_opacity, line_color_node->color);
+ shadow_line_color = gl_color_set_opacity (shadow_line_color, shadow_opacity);
cairo_move_to (cr, 0.0, 0.0);
gl_color_node_free (&color_node);
shadow_color_node = gl_label_object_get_shadow_color (object);
+ shadow_color = gl_color_node_expand (shadow_color_node, record);
if (shadow_color_node->field_flag)
{
shadow_color_node->color = GL_COLOR_SHADOW_MERGE_DEFAULT;
}
shadow_opacity = gl_label_object_get_shadow_opacity (object);
- shadow_color = gl_color_shadow (shadow_color_node->color, shadow_opacity, color);
+ shadow_color = gl_color_set_opacity (shadow_color, shadow_opacity);
gl_color_node_free (&shadow_color_node);
draw_text_real (object, cr, screen_flag, record, shadow_color);