Browse Source

Removed SET_SOURCE_RGBA macro

v1.x
Tj Holowaychuk 14 years ago
parent
commit
09f49e7dc3
  1. 13
      src/CanvasRenderingContext2d.cc

13
src/CanvasRenderingContext2d.cc

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

Loading…
Cancel
Save