Correct macOS png loader to use a default gamma of 2.2 as apple has done since OS 10.6

meow-7.2.2
Rye Mutt 2022-10-30 18:05:34 -04:00
parent 971fd6f843
commit 0c36fed110
1 changed files with 0 additions and 5 deletions

View File

@ -257,12 +257,7 @@ void LLPngWrapper::normalizeImage()
png_set_strip_16(mReadPngPtr);
}
#if LL_DARWIN
const F64 SCREEN_GAMMA = 1.8;
#else
const F64 SCREEN_GAMMA = 2.2;
#endif
if (png_get_gAMA(mReadPngPtr, mReadInfoPtr, &mGamma))
{
png_set_gamma(mReadPngPtr, SCREEN_GAMMA, mGamma);