Fix build with png-1.6.
This commit is contained in:
parent
e55685319b
commit
2ff433c059
15
games/valyriatear/patches/patch-src_engine_video_image_cpp
Normal file
15
games/valyriatear/patches/patch-src_engine_video_image_cpp
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_engine_video_image_cpp,v 1.1 2013/06/07 20:03:31 naddy Exp $
|
||||
|
||||
Fix build with png-1.6.
|
||||
|
||||
--- src/engine/video/image.cpp.orig Fri Mar 29 01:08:43 2013
|
||||
+++ src/engine/video/image.cpp Fri Jun 7 21:47:08 2013
|
||||
@@ -694,7 +694,7 @@ void ImageDescriptor::_GetPngImageInfo(const std::stri
|
||||
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND, NULL);
|
||||
|
||||
// grab the relevant data...
|
||||
-#if PNG_LIBPNG_VER_SONUM == 15
|
||||
+#if PNG_LIBPNG_VER_SONUM >= 15
|
||||
cols = png_get_image_width(png_ptr, info_ptr);
|
||||
rows = png_get_image_height(png_ptr, info_ptr);
|
||||
bpp = png_get_bit_depth(png_ptr, info_ptr) * 8;
|
Loading…
Reference in New Issue
Block a user