Commit 5c4bca18 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

poppler/SplashOutputDev.cc: Fix gray calculation. Patch by Scott Turner <scotty1024@mac.com>

parent fba99578
2006-12-19 Albert Astals Cid <aacid@kde.org>
* poppler/SplashOutputDev.cc: Fix gray calculation. Patch by Scott
Turner <scotty1024@mac.com>
2006-12-12 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: Change a cairo_set_matrix to
......
......@@ -2493,7 +2493,7 @@ void SplashOutputDev::setFillColor(int r, int g, int b) {
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment