From 844294efd1da84044b34de036309d3922937da7f Mon Sep 17 00:00:00 2001 From: nulltask Date: Sat, 29 Mar 2014 00:54:06 +0900 Subject: [PATCH] change operator lighter to lighten --- src/CanvasRenderingContext2d.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index a6c1621..fd24049 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -737,7 +737,7 @@ NAN_GETTER(Context2d::GetGlobalCompositeOperation) { // Non-standard // supported by resent versions of cairo #if CAIRO_VERSION_MINOR >= 10 - case CAIRO_OPERATOR_LIGHTEN: op = "lighter"; break; + case CAIRO_OPERATOR_LIGHTEN: op = "lighten"; break; case CAIRO_OPERATOR_DARKEN: op = "darker"; break; case CAIRO_OPERATOR_MULTIPLY: op = "multiply"; break; case CAIRO_OPERATOR_SCREEN: op = "screen"; break; @@ -833,7 +833,7 @@ NAN_SETTER(Context2d::SetGlobalCompositeOperation) { // Non-standard // supported by resent versions of cairo #if CAIRO_VERSION_MINOR >= 10 - } else if (0 == strcmp("lighter", *type)) { + } else if (0 == strcmp("lighten", *type)) { cairo_set_operator(ctx, CAIRO_OPERATOR_LIGHTEN); } else if (0 == strcmp("darker", *type)) { cairo_set_operator(ctx, CAIRO_OPERATOR_DARKEN);