[poppler] poppler/poppler: Page.cc,1.9,1.10
Jeff Muizelaar
jrmuizel at freedesktop.org
Sun Jan 8 14:51:19 PST 2006
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv23346/poppler
Modified Files:
Page.cc
Log Message:
2006-01-08 Jeff Muizelaar <jeff at infidigm.net>
* poppler/Page.cc: use colToByte for reading thumbnails (#5420).
Patch by Nickolay V. Shmyrev.
Index: Page.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Page.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Page.cc 18 Dec 2005 22:03:30 -0000 1.9
+++ Page.cc 8 Jan 2006 22:51:17 -0000 1.10
@@ -502,9 +502,9 @@
imgstr->getPixel(pix);
colorMap->getRGB(pix, &rgb);
- *p++ = (unsigned char)(rgb.r * 255 + 0.5);
- *p++ = (unsigned char)(rgb.g * 255 + 0.5);
- *p++ = (unsigned char)(rgb.b * 255 + 0.5);
+ *p++ = colToByte(rgb.r);
+ *p++ = colToByte(rgb.g);
+ *p++ = colToByte(rgb.b);
}
}
More information about the poppler
mailing list