From f657a2dfe4ad8ea4b28b5a1c0c6ec0fc96e36f4a Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 29 Jan 2009 15:27:27 +0000 Subject: [PATCH] + Alpha background patch for Cairo (Berteun) --- src/cairo_renderer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp index df6254372..a9f738209 100644 --- a/src/cairo_renderer.cpp +++ b/src/cairo_renderer.cpp @@ -503,8 +503,7 @@ namespace mapnik if (bg) { cairo_context context(context_); - - context.set_color(*bg); + context.set_color(*bg, bg->alpha()/255.0); context.paint(); } }