[poppler] poppler/poppler: SplashOutputDev.cc,1.11,1.12
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Dec 19 12:27:57 PST 2006
Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv14070/poppler
Modified Files:
SplashOutputDev.cc
Log Message:
poppler/SplashOutputDev.cc: Fix gray calculation. Patch by Scott Turner <scotty1024 at mac.com>
Index: SplashOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/SplashOutputDev.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- SplashOutputDev.cc 10 Aug 2006 16:08:51 -0000 1.11
+++ SplashOutputDev.cc 19 Dec 2006 20:27:55 -0000 1.12
@@ -2493,7 +2493,7 @@
rgb.r = byteToCol(r);
rgb.g = byteToCol(g);
rgb.b = byteToCol(b);
- gray = (GfxColorComp)(0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.g + 0.5);
+ gray = (GfxColorComp)(0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b + 0.5);
if (gray > gfxColorComp1) {
gray = gfxColorComp1;
}
More information about the poppler
mailing list