Browse Source

Fixed a few destination operators

v1.x
Tj Holowaychuk 15 years ago
parent
commit
962ee6769a
  1. 4
      src/context2d.cc

4
src/context2d.cc

@ -217,9 +217,9 @@ Context2d::SetGlobalCompositeOperation(Local<String> prop, Local<Value> val, con
} else if (0 == strcmp("destination-atop", *type)) { } else if (0 == strcmp("destination-atop", *type)) {
cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_ATOP); cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_ATOP);
} else if (0 == strcmp("destination-in", *type)) { } else if (0 == strcmp("destination-in", *type)) {
cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_OVER); cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_IN);
} else if (0 == strcmp("destination-out", *type)) { } else if (0 == strcmp("destination-out", *type)) {
cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_OVER); cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_OUT);
} else if (0 == strcmp("destination-over", *type)) { } else if (0 == strcmp("destination-over", *type)) {
cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_OVER); cairo_set_operator(ctx, CAIRO_OPERATOR_DEST_OVER);
} else { } else {

Loading…
Cancel
Save