mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
Bug 111037 - don't look inside png info_ptr. r=pavlov, sr=blizzard, a=asa.
This commit is contained in:
parent
336a2ff808
commit
19ffef77a4
@ -209,7 +209,8 @@ info_callback(png_structp png_ptr, png_infop info_ptr)
|
||||
display_exponent = LUT_exponent * CRT_exponent;
|
||||
|
||||
if (png_get_gAMA(png_ptr, info_ptr, &aGamma)) {
|
||||
if (info_ptr->gamma < 0) aGamma = 0.45455;
|
||||
if (aGamma < 0)
|
||||
aGamma = 0.45455;
|
||||
png_set_gamma(png_ptr, display_exponent, aGamma);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user