Browse Source

Fixed Error that prevented NPM install on mac.

NPM spat out a error that there was only 2 params in DGIFOPEN. I added
the third, an error interger.
v1.x
Matthew Borden 12 years ago
parent
commit
92d8e84a6d
  1. 2
      src/Image.cc

2
src/Image.cc

@ -497,7 +497,7 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) {
gif_data_t gifd = { buf, len, 0 };
if ((gif = DGifOpen((void*) &gifd, read_gif_from_memory)) == NULL)
if ((gif = DGifOpen((void*) &gifd, read_gif_from_memory, (int*) i)) == NULL)
return CAIRO_STATUS_READ_ERROR;
if (GIF_OK != DGifSlurp(gif)) {

Loading…
Cancel
Save