Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/XPDFApp.cc
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2004-05-17 18:12:38 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2004-05-17 18:12:38 (GMT)
commitaf15b57b30fcf442262f3a797d169d6bc3c1a44a (patch)
tree45656ff4d9043e45229253ce1d73d8b9a8251a49 /pdf/xpdf/XPDFApp.cc
parentbace4ea18c03bfcaadab55300bc15290f87540c7 (diff)
Import of Xpdf 3.00
Diffstat (limited to 'pdf/xpdf/XPDFApp.cc')
-rw-r--r--pdf/xpdf/XPDFApp.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/pdf/xpdf/XPDFApp.cc b/pdf/xpdf/XPDFApp.cc
index 5125f5f..34bde23 100644
--- a/pdf/xpdf/XPDFApp.cc
+++ b/pdf/xpdf/XPDFApp.cc
@@ -163,12 +163,20 @@ void XPDFApp::getResources() {
installCmap = (GBool)resources.installCmap;
rgbCubeSize = resources.rgbCubeSize;
reverseVideo = (GBool)resources.reverseVideo;
- paperColor = reverseVideo ? BlackPixel(display, screenNum) :
- WhitePixel(display, screenNum);
+ if (reverseVideo) {
+ paperRGB = splashMakeRGB8(0x00, 0x00, 0x00);
+ paperColor = BlackPixel(display, screenNum);
+ } else {
+ paperRGB = splashMakeRGB8(0xff, 0xff, 0xff);
+ paperColor = WhitePixel(display, screenNum);
+ }
if (resources.paperColor) {
XtVaGetValues(appShell, XmNcolormap, &colormap, NULL);
if (XAllocNamedColor(display, colormap, resources.paperColor,
&xcol, &xcol2)) {
+ paperRGB = splashMakeRGB8(xcol.red >> 8,
+ xcol.green >> 8,
+ xcol.blue >> 8);
paperColor = xcol.pixel;
} else {
error(-1, "Couldn't allocate color '%s'", resources.paperColor);