2021-09-30 04:19:53 +08:00
|
|
|
diff -Naur fbpdf-20200617_f590024/README fbpdf-20200617_f590024.patched/README
|
|
|
|
--- fbpdf-20200617_f590024/README 2021-09-27 04:15:02.000000000 -0400
|
|
|
|
+++ fbpdf-20200617_f590024.patched/README 2021-09-29 02:31:51.610212471 -0400
|
|
|
|
@@ -21,7 +21,9 @@
|
|
|
|
G go to page (the last page if no prefix)
|
2014-08-22 18:52:27 +08:00
|
|
|
o set page number (for 'G' command only)
|
|
|
|
O set page number and go to current page
|
2021-09-30 04:19:53 +08:00
|
|
|
-z zoom; prefix multiplied by 10 (i.e. '15z' = 150%)
|
2014-08-22 18:52:27 +08: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-05 03:46:20 +08:00
|
|
|
i print some information
|
2021-09-30 04:19:53 +08:00
|
|
|
I invert colors
|
|
|
|
diff -Naur fbpdf-20200617_f590024/fbpdf.c fbpdf-20200617_f590024.patched/fbpdf.c
|
|
|
|
--- fbpdf-20200617_f590024/fbpdf.c 2021-09-27 04:15:02.000000000 -0400
|
|
|
|
+++ fbpdf-20200617_f590024.patched/fbpdf.c 2021-09-29 16:07:26.245764122 -0400
|
|
|
|
@@ -269,6 +269,7 @@
|
2016-08-05 03:46:20 +08:00
|
|
|
srow = prow;
|
2014-08-22 18:52:27 +08:00
|
|
|
break;
|
|
|
|
case 'z':
|
|
|
|
+ case '=':
|
2021-09-30 04:19:53 +08:00
|
|
|
count *= 10;
|
2014-08-22 18:52:27 +08:00
|
|
|
zoom_page(getcount(zoom_def));
|
|
|
|
break;
|
2021-09-30 04:19:53 +08:00
|
|
|
@@ -319,10 +320,20 @@
|
2014-08-22 18:52:27 +08:00
|
|
|
case ' ':
|
2016-08-05 03:46:20 +08:00
|
|
|
case CTRLKEY('d'):
|
|
|
|
srow += srows * getcount(1) - step;
|
2021-09-30 04:19:53 +08:00
|
|
|
+ if(srow >= (prow + prows)) {
|
2016-08-05 03:46:20 +08:00
|
|
|
+ srow = 0;
|
|
|
|
+ loadpage(num + 1);
|
2021-09-30 04:19:53 +08:00
|
|
|
+ srow = prow;
|
2016-08-05 03:46:20 +08:00
|
|
|
+ }
|
2014-08-22 18:52:27 +08:00
|
|
|
break;
|
|
|
|
case 127:
|
2016-08-05 03:46:20 +08:00
|
|
|
case CTRLKEY('u'):
|
|
|
|
srow -= srows * getcount(1) - step;
|
2021-09-30 04:19:53 +08:00
|
|
|
+ if(srow <= 0) {
|
2016-08-05 03:46:20 +08:00
|
|
|
+ srow = prows - step;
|
|
|
|
+ loadpage(num - 1);
|
2021-09-30 04:19:53 +08:00
|
|
|
+ srow = prow;
|
2016-08-05 03:46:20 +08:00
|
|
|
+ }
|
2014-08-22 18:52:27 +08:00
|
|
|
break;
|
|
|
|
case '[':
|
2016-08-05 03:46:20 +08:00
|
|
|
scol = pcol;
|
2021-09-30 04:19:53 +08:00
|
|
|
@@ -342,6 +353,14 @@
|
|
|
|
invert = !invert;
|
|
|
|
loadpage(num);
|
2014-08-22 18:52:27 +08:00
|
|
|
break;
|
|
|
|
+ case '+':
|
|
|
|
+ count = 0;
|
|
|
|
+ zoom_page(zoom + 1);
|
|
|
|
+ break;
|
|
|
|
+ case '-':
|
|
|
|
+ count = 0;
|
|
|
|
+ if(zoom > 0) zoom_page(zoom - 1);
|
|
|
|
+ break;
|
2016-08-05 03:46:20 +08:00
|
|
|
default: /* no need to redraw */
|
2014-08-22 18:52:27 +08:00
|
|
|
continue;
|
2016-08-05 03:46:20 +08:00
|
|
|
}
|