[Scummvm-cvs-logs] SF.net SVN: scummvm:[54093] scummvm/trunk/engines/sci/graphics/palette.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Fri Nov 5 13:33:07 CET 2010
Revision: 54093
http://scummvm.svn.sourceforge.net/scummvm/?rev=54093&view=rev
Author: wjpalenstijn
Date: 2010-11-05 12:33:07 +0000 (Fri, 05 Nov 2010)
Log Message:
-----------
SCI: Fix blend rounding, style
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/palette.cpp
Modified: scummvm/trunk/engines/sci/graphics/palette.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/palette.cpp 2010-11-05 11:17:57 UTC (rev 54092)
+++ scummvm/trunk/engines/sci/graphics/palette.cpp 2010-11-05 12:33:07 UTC (rev 54093)
@@ -197,9 +197,9 @@
// return (c1/2+c2/2)+((c1&1)+(c2&1))/2;
// gamma 2.2
- double t = 0.5 + (pow (c1/255.0, 2.2/1.0) * 255.0) +
- 0.5 + (pow (c2/255.0, 2.2/1.0) * 255.0);
- return (byte)(0.5 + (pow (0.5*t/255.0, 1.0/2.2) * 255.0));
+ double t = (pow(c1/255.0, 2.2/1.0) * 255.0) +
+ (pow(c2/255.0, 2.2/1.0) * 255.0);
+ return (byte)(0.5 + (pow(0.5*t/255.0, 1.0/2.2) * 255.0));
}
void GfxPalette::setEGA() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list