|
|
@ -262,8 +262,11 @@ Context2d::GetLineWidth(Local<String> prop, const AccessorInfo &info) { |
|
|
|
|
|
|
|
void |
|
|
|
Context2d::SetLineWidth(Local<String> prop, Local<Value> val, const AccessorInfo &info) { |
|
|
|
Context2d *context = ObjectWrap::Unwrap<Context2d>(info.This()); |
|
|
|
cairo_set_line_width(context->getContext(), val->NumberValue()); |
|
|
|
double n = val->NumberValue(); |
|
|
|
if (n > 0) { |
|
|
|
Context2d *context = ObjectWrap::Unwrap<Context2d>(info.This()); |
|
|
|
cairo_set_line_width(context->getContext(), n); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/*
|
|
|
|