diff options
Diffstat (limited to 'common/cairo.c')
-rw-r--r-- | common/cairo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cairo.c b/common/cairo.c index e8231484..f2ad54c1 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 HAVE_GDK_PIXBUF | 4 | #if HAVE_GDK_PIXBUF |
5 | #include <gdk-pixbuf/gdk-pixbuf.h> | 5 | #include <gdk-pixbuf/gdk-pixbuf.h> |
6 | #endif | 6 | #endif |
7 | 7 | ||
@@ -46,7 +46,7 @@ cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, | |||
46 | return new; | 46 | return new; |
47 | } | 47 | } |
48 | 48 | ||
49 | #ifdef HAVE_GDK_PIXBUF | 49 | #if HAVE_GDK_PIXBUF |
50 | cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdkbuf) { | 50 | cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdkbuf) { |
51 | int chan = gdk_pixbuf_get_n_channels(gdkbuf); | 51 | int chan = gdk_pixbuf_get_n_channels(gdkbuf); |
52 | if (chan < 3) { | 52 | if (chan < 3) { |
@@ -140,4 +140,4 @@ cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(const GdkPixbuf *gdk | |||
140 | cairo_surface_mark_dirty(cs); | 140 | cairo_surface_mark_dirty(cs); |
141 | return cs; | 141 | return cs; |
142 | } | 142 | } |
143 | #endif //HAVE_GDK_PIXBUF | 143 | #endif // HAVE_GDK_PIXBUF |