diff options
author | B. Watson <yalhcru@gmail.com> | 2014-08-22 17:52:27 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-22 17:52:27 +0700 |
commit | 24a9b8655cbcc263e1f8818c7d549f00bf194476 (patch) | |
tree | a8b974d114c69bad7785e79679a23460a811e7d7 /office/fbpdf/navigation.diff | |
parent | 0bd33ceef2a21143711edae9fb87bfb74a16d8c6 (diff) | |
download | slackbuilds-24a9b8655cbcc263e1f8818c7d549f00bf194476.tar.gz |
office/fbpdf: Added (PDF viewer for the Linux framebuffer).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/fbpdf/navigation.diff')
-rw-r--r-- | office/fbpdf/navigation.diff | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/office/fbpdf/navigation.diff b/office/fbpdf/navigation.diff new file mode 100644 index 0000000000..6280062a68 --- /dev/null +++ b/office/fbpdf/navigation.diff @@ -0,0 +1,53 @@ +diff -Naur fbpdf-20140822/README fbpdf-20140822.patched/README +--- fbpdf-20140822/README 2014-08-21 21:12:00.000000000 -0400 ++++ fbpdf-20140822.patched/README 2014-08-22 04:53:46.000000000 -0400 +@@ -28,7 +28,9 @@ + G go to page (the last page if no prefix) + o set page number (for 'G' command only) + O set page number and go to current page +-z zoom; prefix multiplied by 10 (i.e. '15z' = 150%) ++z/= zoom; prefix multiplied by 10 (i.e. '12z' = 120%). Default 15. +++ increase zoom by 10% ++- decrease zoom by 10% + r set rotation in degrees + i print info + q quit +diff -Naur fbpdf-20140822/fbpdf.c fbpdf-20140822.patched/fbpdf.c +--- fbpdf-20140822/fbpdf.c 2014-08-21 21:12:00.000000000 -0400 ++++ fbpdf-20140822.patched/fbpdf.c 2014-08-22 04:53:56.000000000 -0400 +@@ -220,6 +220,7 @@ + numdiff = num - getcount(num); + break; + case 'z': ++ case '=': + zoom_page(getcount(zoom_def)); + break; + case 'Z': +@@ -288,10 +289,12 @@ + case ' ': + case CTRL('d'): + head += fb_rows() * getcount(1) - step; ++ if(head > prows) showpage(num + 1, 0); + break; + case 127: + case CTRL('u'): + head -= fb_rows() * getcount(1) - step; ++ if(head < 0) showpage(num - 1, prows - step); + break; + case '[': + left = leftmost(0); +@@ -307,6 +310,14 @@ + break; + case CTRLKEY('l'): + break; ++ case '+': ++ count = 0; ++ zoom_page(zoom + 1); ++ break; ++ case '-': ++ count = 0; ++ if(zoom > 0) zoom_page(zoom - 1); ++ break; + default: + /* no need to redraw */ + continue; |