From 5d4ec3e6081eee33e0ebe31a4058b78a7a49c25f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 8 Nov 2010 09:40:04 -0800 Subject: [PATCH] Setting shadow source RGBA in shadowStart() --- src/CanvasRenderingContext2d.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index a7fa463..ad4b77c 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -1070,7 +1070,6 @@ Context2d::FillRect(const Arguments &args) { context->shadowStart(); cairo_rectangle(ctx, x, y, width, height); - context->setSourceRGBA(context->state->shadow); cairo_fill(ctx); context->shadowApply(); @@ -1219,6 +1218,7 @@ Context2d::shadowStart() { , state->shadowOffsetX , state->shadowOffsetY); cairo_push_group(_context); + setSourceRGBA(state->shadow); } /*