[Scummvm-cvs-logs] scummvm master -> a7ffda3ba1601f4eb7a611d7283d0431fe14aa1c
m-kiewitz
m_kiewitz at users.sourceforge.net
Fri Feb 5 17:04:02 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a7ffda3ba1 AGI: fix build powf() -> pow()
Commit: a7ffda3ba1601f4eb7a611d7283d0431fe14aa1c
https://github.com/scummvm/scummvm/commit/a7ffda3ba1601f4eb7a611d7283d0431fe14aa1c
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-05T17:03:38+01:00
Commit Message:
AGI: fix build powf() -> pow()
Changed paths:
engines/agi/graphics.cpp
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index cfe6599..bbdbaba 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -835,7 +835,7 @@ void GfxMgr::initPaletteCLUT(uint8 *destPalette, const uint16 *paletteCLUTData,
for (uint componentNr = 0; componentNr < 3; componentNr++) { // RGB component
byte component = (paletteCLUTData[colorNr * 3 + componentNr] >> 8);
// Adjust gamma (1.8 to 2.2)
- component = (byte)(255 * powf(component / 255.0f, 0.8181f));
+ component = (byte)(255 * pow(component / 255.0f, 0.8181f));
destPalette[colorNr * 3 + componentNr] = component;
}
}
More information about the Scummvm-git-logs
mailing list