It was never intended for png_struct to expose it's members,
and now it is fully hidden. So to get the io_ptr we have to use
the png_get_io_ptr() helper function to maintain compatibility.

Signed-off-by: Daniel Nyström <daniel.nyst...@timeterminal.se>
---
 src/engine/image_png.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/engine/image_png.c b/src/engine/image_png.c
index 2212531..781b5b5 100644
--- a/src/engine/image_png.c
+++ b/src/engine/image_png.c
@@ -32,7 +32,7 @@
 static void
 png_read_buffer(png_structp pstruct, png_bytep pointer, png_size_t size)
 {
-       GdImageBufferRead(pstruct->io_ptr, pointer, size);
+       GdImageBufferRead(png_get_io_ptr(pstruct), pointer, size);
 }
 
 PSD
-- 
1.9.1


---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to