ports/graphics/xpdf3/files/patch-xpdf_GlobalParams.cc
Cy Schubert ed06a7905e This is the functional update of xpdf to xpdf 4.00.
graphics/xpdf is renamed (actually copied) to xpdf3. Those who want to
continue to use xpdf with a Motif interface can either install xpdf3 or
set XPDF_VERSION=3 in make.conf and continue to install graphics/xpdf.
This works around any POLA issues people might have between the
old and the new.

PR:		222002
2017-09-12 19:22:01 +00:00

13 lines
533 B
C++

--- xpdf/GlobalParams.cc.orig 2007-02-28 00:05:52.000000000 +0200
+++ xpdf/GlobalParams.cc 2008-04-04 15:44:24.000000000 +0300
@@ -1566,6 +1566,10 @@
*code = xpdfKeyCodeUp;
} else if (!strcmp(p0, "down")) {
*code = xpdfKeyCodeDown;
+ } else if (!strcmp(p0, "numpad-plus")) {
+ *code = xpdfKeyPlus;
+ } else if (!strcmp(p0, "numpad-minus")) {
+ *code = xpdfKeyMinus;
} else if (p0[0] == 'f' && p0[1] >= '1' && p0[1] <= '9' && !p0[2]) {
*code = xpdfKeyCodeF1 + (p0[1] - '1');
} else if (p0[0] == 'f' &&