[poppler] poppler/poppler: SplashOutputDev.cc,1.11,1.11.2.1

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Dec 19 12:26:15 PST 2006


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv11605/poppler

Modified Files:
      Tag: POPPLER_0_5_X
	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.11.2.1
diff -u -d -r1.11 -r1.11.2.1
--- SplashOutputDev.cc	10 Aug 2006 16:08:51 -0000	1.11
+++ SplashOutputDev.cc	19 Dec 2006 20:26:13 -0000	1.11.2.1
@@ -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