You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
596 B
16 lines
596 B
7 years ago
|
--- transfig.3.2.5d/fig2dev/dev/readpng.orig.c 2015-11-14 02:57:30.689827624 +0100
|
||
|
+++ transfig.3.2.5d/fig2dev/dev/readpng.c 2015-11-14 03:48:01.893942375 +0100
|
||
|
@@ -78,8 +78,10 @@
|
||
|
png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
|
||
|
&interlace_type, &compression_type, &filter_type);
|
||
|
|
||
|
- png_fixed_point gamma = 0.45;
|
||
|
- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma);
|
||
|
+ double gamma;
|
||
|
+ if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) {
|
||
|
+ gamma = 0.45455;
|
||
|
+ }
|
||
|
png_set_gamma(png_ptr, 2.2, gamma);
|
||
|
|
||
|
if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
|