From 7135bb83dacf088e6613149453a9e51dd005a730 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 5 Jul 2010 16:33:49 +0200 Subject: Test for libPNG --- src/render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/render.c b/src/render.c index 9546f5cd..72d0d8f0 100644 --- a/src/render.c +++ b/src/render.c @@ -24,6 +24,7 @@ #include "render.h" #include "peaks.h" #include "filters.h" +#include "utils.h" static void *render_bin(float *in, int inw, int inh, int binning, float *maxp) @@ -361,6 +362,7 @@ GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale) int render_png(DisplayWindow *dw, const char *filename) { +#ifdef HAVE_LIBPNG FILE *fh; png_structp png_ptr; png_infop info_ptr; @@ -465,7 +467,9 @@ int render_png(DisplayWindow *dw, const char *filename) fclose(fh); free(hdr); - +#else + STATUS("No PNG support.\n"); +#endif return 0; } -- cgit v1.2.3