From 6d75f5ab30a6e388c51f190bd2be932beb06e2fd Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Sat, 6 Nov 2010 14:13:53 -0700 Subject: [PATCH] Fixed SetShadowBlur() --- src/CanvasRenderingContext2d.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index ca4b429..8d5d593 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -356,7 +356,7 @@ Context2d::GetShadowBlur(Local prop, const AccessorInfo &info) { void Context2d::SetShadowBlur(Local prop, Local val, const AccessorInfo &info) { double n = val->NumberValue(); - if (n > 0) { + if (n >= 0) { Context2d *context = ObjectWrap::Unwrap(info.This()); context->state->shadowBlur = n; } @@ -1043,7 +1043,6 @@ Context2d::FillRect(const Arguments &args) { cairo_t *ctx = context->getContext(); cairo_new_path(ctx); - printf("%d\n", context->hasShadow()); if (!context->hasShadow()) { cairo_rectangle(ctx, x, y, width, height); SET_SOURCE(context->state->fill);