2016-08-04 21:46:20 +02:00
|
|
|
diff -Naur fbpdf-20160804/README fbpdf-20160804.patched/README
|
|
|
|
--- fbpdf-20160804/README 2016-08-04 15:19:06.282346689 -0400
|
|
|
|
+++ fbpdf-20160804.patched/README 2016-08-04 15:07:40.384322633 -0400
|
|
|
|
@@ -22,6 +22,9 @@
|
2014-08-22 12:52:27 +02:00
|
|
|
o set page number (for 'G' command only)
|
|
|
|
O set page number and go to current page
|
2016-08-04 21:46:20 +02:00
|
|
|
z zoom; prefix multiplied by 10 (i.e. '15z' = 150%)
|
2014-08-22 12:52:27 +02:00
|
|
|
+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
|
2016-08-04 21:46:20 +02:00
|
|
|
i print some information
|
2014-08-22 12:52:27 +02:00
|
|
|
q quit
|
2016-08-04 21:46:20 +02:00
|
|
|
diff -Naur fbpdf-20160804/fbpdf.c fbpdf-20160804.patched/fbpdf.c
|
|
|
|
--- fbpdf-20160804/fbpdf.c 2016-08-04 15:19:06.282346689 -0400
|
|
|
|
+++ fbpdf-20160804.patched/fbpdf.c 2016-08-04 15:18:38.618345719 -0400
|
|
|
|
@@ -252,6 +252,7 @@
|
|
|
|
srow = prow;
|
2014-08-22 12:52:27 +02:00
|
|
|
break;
|
|
|
|
case 'z':
|
|
|
|
+ case '=':
|
|
|
|
zoom_page(getcount(zoom_def));
|
|
|
|
break;
|
2016-08-04 21:46:20 +02:00
|
|
|
case 'w':
|
|
|
|
@@ -301,10 +302,18 @@
|
2014-08-22 12:52:27 +02:00
|
|
|
case ' ':
|
2016-08-04 21:46:20 +02:00
|
|
|
case CTRLKEY('d'):
|
|
|
|
srow += srows * getcount(1) - step;
|
|
|
|
+ if(srow > prows) {
|
|
|
|
+ srow = 0;
|
|
|
|
+ loadpage(num + 1);
|
|
|
|
+ }
|
2014-08-22 12:52:27 +02:00
|
|
|
break;
|
|
|
|
case 127:
|
2016-08-04 21:46:20 +02:00
|
|
|
case CTRLKEY('u'):
|
|
|
|
srow -= srows * getcount(1) - step;
|
|
|
|
+ if(srow < 0) {
|
|
|
|
+ srow = prows - step;
|
|
|
|
+ loadpage(num - 1);
|
|
|
|
+ }
|
2014-08-22 12:52:27 +02:00
|
|
|
break;
|
|
|
|
case '[':
|
2016-08-04 21:46:20 +02:00
|
|
|
scol = pcol;
|
|
|
|
@@ -320,6 +329,14 @@
|
2014-08-22 12:52:27 +02:00
|
|
|
break;
|
|
|
|
case CTRLKEY('l'):
|
|
|
|
break;
|
|
|
|
+ case '+':
|
|
|
|
+ count = 0;
|
|
|
|
+ zoom_page(zoom + 1);
|
|
|
|
+ break;
|
|
|
|
+ case '-':
|
|
|
|
+ count = 0;
|
|
|
|
+ if(zoom > 0) zoom_page(zoom - 1);
|
|
|
|
+ break;
|
2016-08-04 21:46:20 +02:00
|
|
|
default: /* no need to redraw */
|
2014-08-22 12:52:27 +02:00
|
|
|
continue;
|
2016-08-04 21:46:20 +02:00
|
|
|
}
|