From b0d70c5baaa560363bfbd81486f7b5ab9debb977 Mon Sep 17 00:00:00 2001 From: King Koopa Date: Sun, 16 Mar 2014 17:05:01 +0200 Subject: [PATCH] Restore Uintiness --- package.json | 2 +- src/Canvas.cc | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 10a2961..22d889a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test": "make test" } , "dependencies": { - "nan": "git://github.com/rvagg/nan.git#cleanup" + "nan": "git://github.com/rvagg/nan.git#0.9-wip" } , "devDependencies": { "express": "3.0" diff --git a/src/Canvas.cc b/src/Canvas.cc index 25919dd..b879eec 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -46,13 +46,13 @@ Canvas::Initialize(Handle target) { proto->SetAccessor(NanSymbol("width"), GetWidth, SetWidth); proto->SetAccessor(NanSymbol("height"), GetHeight, SetHeight); - NanSetTemplate(proto, "PNG_NO_FILTERS", NanNew(PNG_NO_FILTERS)); - NanSetTemplate(proto, "PNG_FILTER_NONE", NanNew(PNG_FILTER_NONE)); - NanSetTemplate(proto, "PNG_FILTER_SUB", NanNew(PNG_FILTER_SUB)); - NanSetTemplate(proto, "PNG_FILTER_UP", NanNew(PNG_FILTER_UP)); - NanSetTemplate(proto, "PNG_FILTER_AVG", NanNew(PNG_FILTER_AVG)); - NanSetTemplate(proto, "PNG_FILTER_PAETH", NanNew(PNG_FILTER_PAETH)); - NanSetTemplate(proto, "PNG_ALL_FILTERS", NanNew(PNG_ALL_FILTERS)); + NanSetTemplate(proto, "PNG_NO_FILTERS", NanNew(PNG_NO_FILTERS)); + NanSetTemplate(proto, "PNG_FILTER_NONE", NanNew(PNG_FILTER_NONE)); + NanSetTemplate(proto, "PNG_FILTER_SUB", NanNew(PNG_FILTER_SUB)); + NanSetTemplate(proto, "PNG_FILTER_UP", NanNew(PNG_FILTER_UP)); + NanSetTemplate(proto, "PNG_FILTER_AVG", NanNew(PNG_FILTER_AVG)); + NanSetTemplate(proto, "PNG_FILTER_PAETH", NanNew(PNG_FILTER_PAETH)); + NanSetTemplate(proto, "PNG_ALL_FILTERS", NanNew(PNG_ALL_FILTERS)); target->Set(NanSymbol("Canvas"), ctor->GetFunction()); } @@ -350,7 +350,7 @@ streamPNG(void *c, const uint8_t *data, unsigned len) { Local argv[3] = { NanNew(NanNull()) , buf - , NanNew(len) }; + , NanNew(len) }; NanMakeCallback(NanGetCurrentContext()->Global(), closure->fn, 3, argv); return CAIRO_STATUS_SUCCESS; } @@ -425,7 +425,7 @@ NAN_METHOD(Canvas::StreamPNGSync) { Local argv[3] = { NanNew(NanNull()) , NanNew(NanNull()) - , NanNew(0) }; + , NanNew(0) }; NanMakeCallback(NanGetCurrentContext()->Global(), closure.fn, 3, argv); } NanReturnUndefined();