From 09f49e7dc348abc7ebf35c7a080fe523e1e747b5 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 8 Nov 2010 09:43:00 -0800 Subject: [PATCH] Removed SET_SOURCE_RGBA macro --- src/CanvasRenderingContext2d.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 270ce3a..e5a9278 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/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.