1 |
xmw 12/01/28 21:14:47 |
2 |
|
3 |
Added: mupdf-9999-zoom.patch mupdf-9999-scroll.patch |
4 |
Log: |
5 |
Updated -9999.build (thanks Shark, bug 401205), remove old version |
6 |
|
7 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 app-text/mupdf/files/mupdf-9999-zoom.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-9999-zoom.patch?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-9999-zoom.patch?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-9999-zoom.patch?r1=1.2&r2=1.3 |
15 |
|
16 |
|
17 |
|
18 |
|
19 |
1.1 app-text/mupdf/files/mupdf-9999-scroll.patch |
20 |
|
21 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-9999-scroll.patch?rev=1.1&view=markup |
22 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/mupdf/files/mupdf-9999-scroll.patch?rev=1.1&content-type=text/plain |
23 |
|
24 |
Index: mupdf-9999-scroll.patch |
25 |
=================================================================== |
26 |
From http://aur.archlinux.org/packages.php?ID=52333 |
27 |
|
28 |
--- mupdf-0.9/apps/pdfapp.c |
29 |
+++ mupdf-0.9/apps/pdfapp.c |
30 |
@@ -817,11 +817,15 @@ |
31 |
break; |
32 |
|
33 |
case 'j': |
34 |
+ if (app->pany + app->image->h <= app->winh) |
35 |
+ goto pagedown; |
36 |
app->pany -= app->image->h / 10; |
37 |
pdfapp_showpage(app, 0, 0, 1); |
38 |
break; |
39 |
|
40 |
case 'k': |
41 |
+ if (app->pany >= 0) |
42 |
+ goto pageup; |
43 |
app->pany += app->image->h / 10; |
44 |
pdfapp_showpage(app, 0, 0, 1); |
45 |
break; |
46 |
@@ -885,6 +889,7 @@ |
47 |
*/ |
48 |
|
49 |
case ',': |
50 |
+ pageup: |
51 |
panto = PAN_TO_BOTTOM; |
52 |
if (app->numberlen > 0) |
53 |
app->pageno -= atoi(app->number); |
54 |
@@ -893,6 +898,7 @@ |
55 |
break; |
56 |
|
57 |
case '.': |
58 |
+ pagedown: |
59 |
panto = PAN_TO_TOP; |
60 |
if (app->numberlen > 0) |
61 |
app->pageno += atoi(app->number); |
62 |
@@ -902,7 +908,7 @@ |
63 |
case 'b': |
64 |
case '\b': //backspace |
65 |
- panto = DONT_PAN; |
66 |
+ panto = PAN_TO_TOP; |
67 |
if (app->numberlen > 0) |
68 |
app->pageno -= atoi(app->number); |
69 |
else |
70 |
|
71 |
@ -1067,7 +1073,12 @@ |
72 |
int isx = (modifiers & (1<<0)); |
73 |
int xstep = isx ? 20 * dir : 0; |
74 |
int ystep = !isx ? 20 * dir : 0; |
75 |
- pdfapp_panview(app, app->panx + xstep, app->pany + ystep); |
76 |
+ if (!isx && dir < 0 && app->pany + app->image->h <= app->winh) |
77 |
+ pdfapp_onkey(app, 'j'); |
78 |
+ else if (!isx && dir > 0 && app->pany >= 0) |
79 |
+ pdfapp_onkey(app, 'k'); |
80 |
+ else |
81 |
+ pdfapp_panview(app, app->panx + xstep, app->pany + ystep); |
82 |
} |
83 |
} |
84 |
} |