Browse Source

Merge branch 'master' of github.com:LearnBoost/node-canvas

v1.x
Tj Holowaychuk 14 years ago
parent
commit
582a005cfa
  1. 3
      src/Canvas.cc
  2. 2
      src/Canvas.h

3
src/Canvas.cc

@ -133,7 +133,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
* EIO toBuffer callback.
*/
int
void
Canvas::EIO_ToBuffer(eio_req *req) {
closure_t *closure = (closure_t *) req->data;
@ -142,7 +142,6 @@ Canvas::EIO_ToBuffer(eio_req *req) {
, toBuffer
, closure);
return 0;
}
/*

2
src/Canvas.h

@ -43,7 +43,7 @@ class Canvas: public node::ObjectWrap {
static void SetHeight(Local<String> prop, Local<Value> val, const AccessorInfo &info);
static Handle<Value> StreamPNGSync(const Arguments &args);
static Local<Value> Error(cairo_status_t status);
static int EIO_ToBuffer(eio_req *req);
static void EIO_ToBuffer(eio_req *req);
static int EIO_AfterToBuffer(eio_req *req);
inline cairo_surface_t *surface(){ return _surface; }
inline uint8_t *data(){ return cairo_image_surface_get_data(_surface); }

Loading…
Cancel
Save