Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add CAIRO_FORMAT_INVALID #370

Merged
merged 1 commit into from

3 participants

@rcoup

Fixes #342

Ubuntu Lucid LTS has Cairo 1.8.10 which doesn't support it. Copied the value from http://cairographics.org/manual/cairo-Image-Surfaces.html

@kangax kangax merged commit 625306d into Automattic:master
@vvo
vvo commented

@kangax Can you publish a patched npm version? Thank you

@kangax
Collaborator

@vvo published

@vvo
vvo commented

great !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 27, 2013
  1. @rcoup

    Add CAIRO_FORMAT_INVALID

    rcoup authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/PNG.h
View
4 src/PNG.h
@@ -15,6 +15,10 @@
#define unlikely(expr) (expr)
#endif
+#ifndef CAIRO_FORMAT_INVALID
+#define CAIRO_FORMAT_INVALID -1
+#endif
+
static void canvas_png_flush(png_structp png_ptr) {
/* Do nothing; fflush() is said to be just a waste of energy. */
(void) png_ptr; /* Stifle compiler warning */
Something went wrong with that request. Please try again.