cairo: properly handle alpha when setting color - fixes failing visual test (marker_line_placement_on_points)
This commit is contained in:
parent
6f8a12d29d
commit
2337a247d3
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ void cairo_context::set_color(color const &color, double opacity)
|
||||||
|
|
||||||
void cairo_context::set_color(double r, double g, double b, double opacity)
|
void cairo_context::set_color(double r, double g, double b, double opacity)
|
||||||
{
|
{
|
||||||
cairo_set_source_rgb(cairo_.get(), r, g, b);
|
// http://lists.cairographics.org/archives/cairo/2008-August/014759.html
|
||||||
|
cairo_set_source_rgba(cairo_.get(), r, g, b, opacity);
|
||||||
check_object_status_and_throw_exception(*this);
|
check_object_status_and_throw_exception(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue