diff --git a/binding.gyp b/binding.gyp index 0fc293a..0f23e2a 100644 --- a/binding.gyp +++ b/binding.gyp @@ -36,7 +36,8 @@ 'conditions': [ ['OS=="win"', { 'libraries': [ - '-l<(GTK_Root)/lib/cairo.lib' + '-l<(GTK_Root)/lib/cairo.lib', + '-l<(GTK_Root)/lib/libpng.lib' ], 'include_dirs': [ '<(GTK_Root)/include', @@ -48,10 +49,12 @@ }, { # 'OS!="win"' 'libraries': [ ' #include -#include +#include #include #include #include "closure.h" @@ -137,10 +137,12 @@ static cairo_status_t canvas_write_png(cairo_surface_t *surface, png_rw_ptr writ bpc = 8; png_color_type = PNG_COLOR_TYPE_RGB_ALPHA; break; +#ifdef CAIRO_FORMAT_RGB30 case CAIRO_FORMAT_RGB30: bpc = 10; png_color_type = PNG_COLOR_TYPE_RGB; break; +#endif case CAIRO_FORMAT_RGB24: bpc = 8; png_color_type = PNG_COLOR_TYPE_RGB;