|
@ -33,18 +33,7 @@ using namespace node; |
|
|
if (_##Pattern) \ |
|
|
if (_##Pattern) \ |
|
|
cairo_set_source(ctx, _##Pattern); \ |
|
|
cairo_set_source(ctx, _##Pattern); \ |
|
|
else \ |
|
|
else \ |
|
|
SET_SOURCE_RGBA(_) |
|
|
context->setSourceRGBA(_) |
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
* Set source RGBA. |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#define SET_SOURCE_RGBA(_) \ |
|
|
|
|
|
cairo_set_source_rgba(ctx \ |
|
|
|
|
|
, _.r \ |
|
|
|
|
|
, _.g \ |
|
|
|
|
|
, _.b \ |
|
|
|
|
|
, _.a * context->state->globalAlpha); |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
|
* Rectangle arg assertions. |
|
|
* Rectangle arg assertions. |
|
|