aboutsummaryrefslogtreecommitdiffstats
path: root/common/cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cairo.c')
-rw-r--r--common/cairo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cairo.c b/common/cairo.c
index c6bd0da9..c267c77c 100644
--- a/common/cairo.c
+++ b/common/cairo.c
@@ -1,7 +1,7 @@
1#include <stdint.h> 1#include <stdint.h>
2#include <cairo/cairo.h> 2#include <cairo/cairo.h>
3#include "cairo.h" 3#include "cairo.h"
4#ifdef WITH_GDK_PIXBUF 4#ifdef HAVE_GDK_PIXBUF
5#include <gdk-pixbuf/gdk-pixbuf.h> 5#include <gdk-pixbuf/gdk-pixbuf.h>
6#endif 6#endif
7 7
@@ -30,7 +30,7 @@ cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image,
30 return new; 30 return new;
31} 31}
32 32
33#ifdef WITH_GDK_PIXBUF 33#ifdef HAVE_GDK_PIXBUF
34cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdkbuf) { 34cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdkbuf) {
35 int chan = gdk_pixbuf_get_n_channels(gdkbuf); 35 int chan = gdk_pixbuf_get_n_channels(gdkbuf);
36 if (chan < 3) { 36 if (chan < 3) {
@@ -124,4 +124,4 @@ cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdk
124 cairo_surface_mark_dirty(cs); 124 cairo_surface_mark_dirty(cs);
125 return cs; 125 return cs;
126} 126}
127#endif //WITH_GDK_PIXBUF 127#endif //HAVE_GDK_PIXBUF