mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
chore: Fix a comment in pngrtran.c
This commit is contained in:
parent
2d7da9db8a
commit
f0c578748b
11
pngrtran.c
11
pngrtran.c
@ -297,14 +297,13 @@ png_set_alpha_mode_fixed(png_structrp png_ptr, int mode,
|
|||||||
|
|
||||||
output_gamma = translate_gamma_flags(png_ptr, output_gamma, 1/*screen*/);
|
output_gamma = translate_gamma_flags(png_ptr, output_gamma, 1/*screen*/);
|
||||||
|
|
||||||
/* Validate the value to ensure it is in a reasonable range. The value
|
/* Validate the value to ensure it is in a reasonable range. The value
|
||||||
* is expected to be 1 or greater, but this range test allows for some
|
* is expected to be 1 or greater, but this range test allows for some
|
||||||
* viewing correction values. The intent is to weed out users of this API
|
* viewing correction values. The intent is to weed out the API users
|
||||||
* who use the inverse of the gamma value accidentally! Since some of these
|
* who might use the inverse of the gamma value accidentally!
|
||||||
* values are reasonable this may have to be changed:
|
|
||||||
*
|
*
|
||||||
* 1.6.x: changed from 0.07..3 to 0.01..100 (to accommodate the optimal 16-bit
|
* In libpng 1.6.x, we changed from 0.07..3 to 0.01..100, to accommodate
|
||||||
* gamma of 36, and its reciprocal.)
|
* the optimal 16-bit gamma of 36 and its reciprocal.
|
||||||
*/
|
*/
|
||||||
if (output_gamma < 1000 || output_gamma > 10000000)
|
if (output_gamma < 1000 || output_gamma > 10000000)
|
||||||
png_error(png_ptr, "output gamma out of expected range");
|
png_error(png_ptr, "output gamma out of expected range");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user