diff options
author | Kristian Høgsberg <krh@redhat.com> | 2005-12-04 01:42:29 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2005-12-04 01:42:29 +0000 |
commit | 4d169c5c345cdac84a39026e759b928977643417 (patch) | |
tree | a4f37b542feb3b09f5f0e2e8aed63334be5ab9de /poppler/GfxState.cc | |
parent | 58de0458e17b1639ce0bcae45a4b09b2c0a56618 (diff) |
2005-12-03 Kristian Høgsberg <krh@redhat.com>
* poppler/GfxState.cc: Fixing another problem with new GfxRGB
representation causing images to show up as random pixels (#5117).
Diffstat (limited to 'poppler/GfxState.cc')
-rw-r--r-- | poppler/GfxState.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index 15d3f237..b6b1c0c0 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -198,9 +198,9 @@ void GfxColorSpace::getRGBLine(Guchar *in, unsigned int *out, int length) { 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); } } |