diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | readpng.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index e0b2a31..1c754b0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ bin_PROGRAMS = xrenderbenchmark xrenderbenchmark_CFLAGS = $(XRENDERBENCHMARK_CFLAGS) -xrenderbenchmark_LDADD = $(XRENDERBENCHMARK_LIBS) +xrenderbenchmark_LDADD = $(XRENDERBENCHMARK_LIBS) -lm xrenderbenchmark_SOURCES = \ main.c readpng.c \ diff --git a/configure.ac b/configure.ac index b2a2a1e..3a02562 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_PROG_CC AC_PROG_INSTALL # Checks for pkg-config packages -PKG_CHECK_MODULES(XRENDERBENCHMARK, libpng12 x11 xrender) +PKG_CHECK_MODULES(XRENDERBENCHMARK, libpng x11 xrender) AC_SUBST(XRENDERBENCHMARK_CFLAGS) AC_SUBST(XRENDERBENCHMARK_LIBS) @@ -118,7 +118,7 @@ int readPng(const char *filename, /* expand gray bit depth if needed */ if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8) - png_set_gray_1_2_4_to_8 (png); + png_set_expand_gray_1_2_4_to_8 (png); /* transform transparency to alpha */ if (png_get_valid(png, info, PNG_INFO_tRNS)) |