diff options
author | 2010-09-09 00:36:57 +0000 | |
---|---|---|
committer | 2010-09-09 00:36:57 +0000 | |
commit | f482ce66e6d8913000c49f23e2c3060217abf9bf (patch) | |
tree | fb2f67e40a98040c11f680c4c446189402082ef7 /app-text/mupdf/files | |
parent | added ppp-2.4.5 support, redesigned pppd version detection. (diff) | |
download | historical-f482ce66e6d8913000c49f23e2c3060217abf9bf.tar.gz historical-f482ce66e6d8913000c49f23e2c3060217abf9bf.tar.bz2 historical-f482ce66e6d8913000c49f23e2c3060217abf9bf.zip |
Revision bump to add zoom keys and fix documentation issues
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'app-text/mupdf/files')
-rw-r--r-- | app-text/mupdf/files/mupdf-0.7-zoom.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app-text/mupdf/files/mupdf-0.7-zoom.patch b/app-text/mupdf/files/mupdf-0.7-zoom.patch new file mode 100644 index 000000000000..0f33e2aa0743 --- /dev/null +++ b/app-text/mupdf/files/mupdf-0.7-zoom.patch @@ -0,0 +1,65 @@ +Michael Weber <xmw at gentoo dot org> 09/09/2010 + +--- apps/pdfapp.c.orig 2010-09-09 01:59:16.820000053 +0200 ++++ apps/pdfapp.c 2010-09-09 02:02:32.400000054 +0200 +@@ -602,6 +602,20 @@ + pdfapp_showpage(app, 0, 1); + break; + ++ case '_': // zoom to default resolution ++ app->resolution = 72; ++ pdfapp_showpage(app, 0, 1); ++ break; ++ ++ case 'z': // zoom to fit window ++ case 'Z': // zoom to fill window ++ if ( ( c == 'Z' ) ^ ( app->image->w * app->winh > app->winw * app->image->h ) ) ++ app->resolution = ( app->resolution * app->winw ) / app->image->w; ++ else ++ app->resolution = ( app->resolution * app->winh ) / app->image->h; ++ pdfapp_showpage(app, 0, 1); ++ break; ++ + case 'L': + app->rotate -= 90; + pdfapp_showpage(app, 0, 1); +@@ -725,6 +739,7 @@ + break; + + case 'b': ++ case '\b': //backspace + panto = DONT_PAN; + if (app->numberlen > 0) + app->pageno -= atoi(app->number); +@@ -733,6 +748,7 @@ + break; + + case ' ': ++ case 'f': + panto = DONT_PAN; + if (app->numberlen > 0) + app->pageno += atoi(app->number); +--- debian/mupdf.1.orig 2010-09-09 02:05:07.573000045 +0200 ++++ debian/mupdf.1 2010-09-09 02:14:25.744000054 +0200 +@@ -1,4 +1,4 @@ +-.TH MUPDF 1 "March 15, 2010" ++.TH MUPDF 1 "September 9, 2010" + .\" Please adjust this date whenever revising the manpage. + .SH NAME + mupdf \- MuPDF is a lightweight PDF viewer written in portable C +@@ -96,6 +96,15 @@ + .B \- + Zoom out. + .TP ++.B _ ++Reset zoom to default (72dpi). ++.TP ++.B z ++Zoom page size to fit into the window frame. ++.TP ++.B Z ++Zoom page size to fill the window frame. ++.TP + .B < + Rotate page counter-clockwise or left by 90\(de. + .TP |