[poppler] poppler/poppler: GfxState.cc,1.6,1.7
Kristian Høgsberg
krh at freedesktop.org
Sat Dec 3 17:42:31 PST 2005
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv23957/poppler
Modified Files:
GfxState.cc
Log Message:
2005-12-03 Kristian Høgsberg <krh at redhat.com>
* poppler/GfxState.cc: Fixing another problem with new GfxRGB
representation causing images to show up as random pixels (#5117).
Index: GfxState.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/GfxState.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- GfxState.cc 20 Nov 2005 23:17:32 -0000 1.6
+++ GfxState.cc 4 Dec 2005 01:42:29 -0000 1.7
@@ -198,9 +198,9 @@
getRGB (&color, &rgb);
out[i] =
- ((int) (rgb.r * 255) << 16) |
- ((int) (rgb.g * 255) << 8) |
- ((int) (rgb.b * 255) << 0);
+ ((int) (rgb.r >> 8) << 16) |
+ ((int) (rgb.g >> 8) << 8) |
+ ((int) (rgb.b >> 8) << 0);
}
}
More information about the poppler
mailing list