diff options
author | root <root@rshg054.dnsready.net> | 2011-11-08 23:14:49 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-08 23:14:49 +0000 |
commit | ddba9670c1518d9b420db6a6dca01a4a4a4136c7 (patch) | |
tree | 8b5ba5ea49ecb6848eba27d2eb609100de5e760a /community/gmerlin/libpng.patch | |
parent | effb26c3b1f00bf8bea4e2562f07f9a06eb67606 (diff) |
Tue Nov 8 23:14:49 UTC 2011
Diffstat (limited to 'community/gmerlin/libpng.patch')
-rw-r--r-- | community/gmerlin/libpng.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/gmerlin/libpng.patch b/community/gmerlin/libpng.patch new file mode 100644 index 000000000..c01105e63 --- /dev/null +++ b/community/gmerlin/libpng.patch @@ -0,0 +1,17 @@ +diff -wbBur gmerlin-1.0.0/plugins/png/ir_png.c gmerlin-1.0.0.my/plugins/png/ir_png.c +--- gmerlin-1.0.0/plugins/png/ir_png.c 2011-01-07 18:37:06.000000000 +0300 ++++ gmerlin-1.0.0.my/plugins/png/ir_png.c 2011-11-07 14:46:25.000000000 +0400 +@@ -127,13 +127,8 @@ + bits = 16; + } + if(bit_depth < 8) +-#if BG_MAKE_BUILD(PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE) < BG_MAKE_BUILD(1,2,9) +- png_set_gray_1_2_4_to_8(png->png_ptr); +-#else + png_set_expand_gray_1_2_4_to_8(png->png_ptr); +-#endif + +- png_set_gray_1_2_4_to_8(png->png_ptr); + if (png_get_valid(png->png_ptr, png->info_ptr, PNG_INFO_tRNS)) + { + png_set_tRNS_to_alpha(png->png_ptr); |