Skip to content
Snippets Groups Projects
Commit defc3c52 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Use modern(since 10.6) gamma curve for png loading on macos

parent e36769aa
No related branches found
No related tags found
No related merge requests found
...@@ -257,11 +257,7 @@ void LLPngWrapper::normalizeImage() ...@@ -257,11 +257,7 @@ void LLPngWrapper::normalizeImage()
png_set_strip_16(mReadPngPtr); png_set_strip_16(mReadPngPtr);
} }
#if LL_DARWIN
const F64 SCREEN_GAMMA = 1.8;
#else
const F64 SCREEN_GAMMA = 2.2; const F64 SCREEN_GAMMA = 2.2;
#endif
if (png_get_gAMA(mReadPngPtr, mReadInfoPtr, &mGamma)) if (png_get_gAMA(mReadPngPtr, mReadInfoPtr, &mGamma))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment