diff options
author | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-11-09 16:20:59 (GMT) |
---|---|---|
committer | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-11-09 16:20:59 (GMT) |
commit | c8a16b3469cf57c02e49439073a60908b4a93f91 (patch) | |
tree | bff24b9e2ead2d7b03901177788e61b7019308fe /pdf | |
parent | d5f6bff1a13c848afbd74dd2e82c78bbdead54d2 (diff) |
xpdf page numbering is not zero-based!
* xpdf/gpdf-view.cc (gpdf_view_key_press_event): xpdf page
numbering is not zero-based!
* xpdf/GfxState.cc (GfxDeviceCMYKColorSpace::getRGB): special case
cmyk k-only colors
* xpdf/GPOutputDev.h: declare drawImage
* xpdf/GPOutputDev.cc (getFontFace): forgot to rename one
font_name to gfont_name; cleanup whitespace in the source
(drawImage): implement. (Does not render output on
GnomePrintPreview older than 2002-06-14)
* shell/gpdf.c (gw_control_load_pdf): s|file://|file:|
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/xpdf/GfxState.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pdf/xpdf/GfxState.cc b/pdf/xpdf/GfxState.cc index 1668c24..c0f5ff4 100644 --- a/pdf/xpdf/GfxState.cc +++ b/pdf/xpdf/GfxState.cc @@ -410,6 +410,12 @@ void GfxDeviceCMYKColorSpace::getGray(GfxColor *color, double *gray) { void GfxDeviceCMYKColorSpace::getRGB(GfxColor *color, GfxRGB *rgb) { double c, m, y, aw, ac, am, ay, ar, ag, ab; + /* FIXME ask Derek */ + if (color->c[0] == 0.0 && color->c[1] == 0 && color->c[2] == 0) { + rgb->r = rgb->g = rgb->b = 1 - color->c[3]; + return; + } + c = clip01(color->c[0] + color->c[3]); m = clip01(color->c[1] + color->c[3]); y = clip01(color->c[2] + color->c[3]); |