aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-12-02 22:42:54 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:07 +0100
commitde010513c22947a905b27a164fa9975d6a8b5d63 (patch)
tree4eff34327102ea12cbb28bc2e4c8f2f738351f8b /src/render.h
parent4560e69b51b9e517bc5c7edbb80bc567f5bae2fd (diff)
Improve autoconf conditionals (i.e. make them work..)
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render.h b/src/render.h
index 0be9ae97..902ec278 100644
--- a/src/render.h
+++ b/src/render.h
@@ -18,7 +18,6 @@
#define RENDER_H
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include <stddef.h>
#include "displaywindow.h"
@@ -33,9 +32,15 @@ enum {
extern void render_scale(float val, float max, int scale,
float *rp, float *gp, float *bp);
+#ifdef HAVE_GTK
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
extern GdkPixbuf *render_get_image(DisplayWindow *dw);
extern GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale);
+#endif /* HAVE_GTK */
+
extern int render_png(DisplayWindow *dw, const char *filename);
extern int render_tiff_fp(DisplayWindow *dw, const char *filename);
extern int render_tiff_int16(DisplayWindow *dw, const char *filename);