Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/mupdf/files: mupdf-0.7-zoom.patch
Date: Thu, 09 Sep 2010 00:37:01
Message-Id: 20100909003658.0034B2003C@flycatcher.gentoo.org
1 xmw 10/09/09 00:36:57
2
3 Added: mupdf-0.7-zoom.patch
4 Log:
5 Revision bump to add zoom keys and fix documentation issues
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-text/mupdf/files/mupdf-0.7-zoom.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-0.7-zoom.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-0.7-zoom.patch?rev=1.1&content-type=text/plain
13
14 Index: mupdf-0.7-zoom.patch
15 ===================================================================
16 Michael Weber <xmw at gentoo dot org> 09/09/2010
17
18 --- apps/pdfapp.c.orig 2010-09-09 01:59:16.820000053 +0200
19 +++ apps/pdfapp.c 2010-09-09 02:02:32.400000054 +0200
20 @@ -602,6 +602,20 @@
21 pdfapp_showpage(app, 0, 1);
22 break;
23
24 + case '_': // zoom to default resolution
25 + app->resolution = 72;
26 + pdfapp_showpage(app, 0, 1);
27 + break;
28 +
29 + case 'z': // zoom to fit window
30 + case 'Z': // zoom to fill window
31 + if ( ( c == 'Z' ) ^ ( app->image->w * app->winh > app->winw * app->image->h ) )
32 + app->resolution = ( app->resolution * app->winw ) / app->image->w;
33 + else
34 + app->resolution = ( app->resolution * app->winh ) / app->image->h;
35 + pdfapp_showpage(app, 0, 1);
36 + break;
37 +
38 case 'L':
39 app->rotate -= 90;
40 pdfapp_showpage(app, 0, 1);
41 @@ -725,6 +739,7 @@
42 break;
43
44 case 'b':
45 + case '\b': //backspace
46 panto = DONT_PAN;
47 if (app->numberlen > 0)
48 app->pageno -= atoi(app->number);
49 @@ -733,6 +748,7 @@
50 break;
51
52 case ' ':
53 + case 'f':
54 panto = DONT_PAN;
55 if (app->numberlen > 0)
56 app->pageno += atoi(app->number);
57 --- debian/mupdf.1.orig 2010-09-09 02:05:07.573000045 +0200
58 +++ debian/mupdf.1 2010-09-09 02:14:25.744000054 +0200
59 @@ -1,4 +1,4 @@
60 -.TH MUPDF 1 "March 15, 2010"
61 +.TH MUPDF 1 "September 9, 2010"
62 .\" Please adjust this date whenever revising the manpage.
63 .SH NAME
64 mupdf \- MuPDF is a lightweight PDF viewer written in portable C
65 @@ -96,6 +96,15 @@
66 .B \-
67 Zoom out.
68 .TP
69 +.B _
70 +Reset zoom to default (72dpi).
71 +.TP
72 +.B z
73 +Zoom page size to fit into the window frame.
74 +.TP
75 +.B Z
76 +Zoom page size to fill the window frame.
77 +.TP
78 .B <
79 Rotate page counter-clockwise or left by 90\(de.
80 .TP