diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-07-29 17:58:49 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-07-29 17:58:49 -0500 |
commit | 29034c5076b4358231c8614ab088e4f0c063c06f (patch) | |
tree | 45c7d1206c0c6fff67766560b1534bd9d278358f /pngrtran.c | |
parent | 31aee0d0c073f396e972e4fae61c910250934b4e (diff) | |
download | libpng-29034c5076b4358231c8614ab088e4f0c063c06f.tar.gz |
[devel] Expanded the new TAB characters.
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pngrtran.c b/pngrtran.c index f9b506e94..6fe7399cf 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -917,7 +917,7 @@ png_init_read_transformations(png_structp png_ptr) istop=(int)png_ptr->num_trans; for (i=0; i<istop; i++) png_ptr->trans_alpha[i] = (png_byte)(255 - - png_ptr->trans_alpha[i]); + png_ptr->trans_alpha[i]); } } #endif @@ -985,21 +985,21 @@ png_init_read_transformations(png_structp png_ptr) case PNG_BACKGROUND_GAMMA_FILE: g = png_reciprocal(png_ptr->gamma); gs = png_reciprocal2(png_ptr->gamma, - png_ptr->screen_gamma); + png_ptr->screen_gamma); break; case PNG_BACKGROUND_GAMMA_UNIQUE: g = png_reciprocal(png_ptr->background_gamma); gs = png_reciprocal2(png_ptr->background_gamma, - png_ptr->screen_gamma); + png_ptr->screen_gamma); break; default: g = PNG_FP_1; /* back_1 */ gs = PNG_FP_1; /* back */ - break; + break; } - if ( png_gamma_significant(gs) ) + if ( png_gamma_significant(gs) ) { back.red = (png_byte)png_ptr->background.red; back.green = (png_byte)png_ptr->background.green; @@ -1067,8 +1067,8 @@ png_init_read_transformations(png_structp png_ptr) else /* color_type != PNG_COLOR_TYPE_PALETTE */ { - png_fixed_point g = PNG_FP_1; - png_fixed_point gs = PNG_FP_1; + png_fixed_point g = PNG_FP_1; + png_fixed_point gs = PNG_FP_1; switch (png_ptr->background_gamma_type) { @@ -1085,12 +1085,12 @@ png_init_read_transformations(png_structp png_ptr) case PNG_BACKGROUND_GAMMA_UNIQUE: g = png_reciprocal(png_ptr->background_gamma); gs = png_reciprocal2(png_ptr->background_gamma, - png_ptr->screen_gamma); + png_ptr->screen_gamma); break; } png_ptr->background_1.gray = png_gamma_correct(png_ptr, - png_ptr->background.gray, g); + png_ptr->background.gray, g); png_ptr->background.gray = png_gamma_correct(png_ptr, png_ptr->background.gray, gs); |