Bug 111037. Patch from nivedita@netscape.com. r=pavlov sr=tor@acm.org
git-svn-id: svn://10.0.0.236/trunk@114257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -208,8 +208,10 @@ info_callback(png_structp png_ptr, png_infop info_ptr)
|
||||
/* (alternatively, could check for SCREEN_GAMMA environment variable) */
|
||||
display_exponent = LUT_exponent * CRT_exponent;
|
||||
|
||||
if (png_get_gAMA(png_ptr, info_ptr, &aGamma))
|
||||
if (png_get_gAMA(png_ptr, info_ptr, &aGamma)) {
|
||||
if (info_ptr->gamma < 0) aGamma = 0.45455;
|
||||
png_set_gamma(png_ptr, display_exponent, aGamma);
|
||||
}
|
||||
else
|
||||
png_set_gamma(png_ptr, display_exponent, 0.45455);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user