Browse Source

change operator lighter to lighten

v1.x
nulltask 11 years ago
parent
commit
844294efd1
  1. 4
      src/CanvasRenderingContext2d.cc

4
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);

Loading…
Cancel
Save