Browse Source

Setting shadow source RGBA in shadowStart()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
5d4ec3e608
  1. 2
      src/CanvasRenderingContext2d.cc

2
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);
}
/*

Loading…
Cancel
Save