diff options
author | Kristian Høgsberg <krh@redhat.com> | 2005-12-09 20:49:59 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2005-12-09 20:49:59 +0000 |
commit | bc6df8c41081c0c0107655cbf70ddb8b0c493c34 (patch) | |
tree | ef7512e1e93793a8134ca9de8d22707c3aaaed3f /poppler/GfxState.cc | |
parent | 8a2464122455311c6d16ae62bb9ac9a0ae365a28 (diff) |
2005-12-09 Kristian Høgsberg <krh@redhat.com>
* poppler/GfxState.cc: Use colToByte() for converting GxfColorComp
to bytes (really fix #5117).
* poppler/Stream.cc: Remove duplicated check (#5243).
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 b6b1c0c0..e5ac80da 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 >> 8) << 16) | - ((int) (rgb.g >> 8) << 8) | - ((int) (rgb.b >> 8) << 0); + ((int) colToByte(rgb.r) << 16) | + ((int) colToByte(rgb.g) << 8) | + ((int) colToByte(rgb.b) << 0); } } |