cairo: properly handle alpha when setting color - fixes failing visual test (marker_line_placement_on_points)

This commit is contained in:
Dane Springmeyer 2013-01-10 17:44:34 -08:00
parent 6f8a12d29d
commit 2337a247d3

View file

@ -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);
} }