mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
24a9b8655c
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
53 lines
1.5 KiB
Diff
53 lines
1.5 KiB
Diff
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;
|