Files
ports/graphics/devil/files/patch-src-IL-src-il_png.c
Oliver Lehmann 58f9523a55 - enable SDL support on request (OPTIONS)
- fill CONFIGURE_ENV to detect more libraries which are installed because
  of LIB_DEPENDS anyway e.g. libpng (until that change, devil had no png
  support - even if libpng was installed)
- fix a png-support bug for 64bit systems.
- bump PORTREVISION

Approved by:	maintainer
2005-10-06 15:29:40 +00:00

19 lines
529 B
C

--- src-IL/src/il_png.c.orig Thu Jun 24 11:38:54 2004
+++ src-IL/src/il_png.c Wed Oct 5 22:44:17 2005
@@ -282,11 +282,11 @@
ILboolean readpng_get_image(ILdouble display_exponent)
{
- ILuint i;
png_bytepp row_pointers = NULL;
- ILuint width, height, channels;
- ILdouble screen_gamma = 1.0, image_gamma;
- ILuint bit_depth;
+ png_uint_32 width, height;
+ ILuint i, channels, bit_depth;
+ ILdouble screen_gamma = 1.0, image_gamma;
+
/* setjmp() must be called in every function that calls a PNG-reading