FreeBSD Bugzilla – Attachment 115318 Details for
Bug 157095
graphics/mupdf: optional scroll hack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mupdf_1-scroll_hack.patch
mupdf_1-scroll_hack.patch (text/plain), 1.86 KB, created by
lichray
on 2011-05-16 22:00:22 UTC
(
hide
)
Description:
mupdf_1-scroll_hack.patch
Filename:
MIME Type:
Creator:
lichray
Created:
2011-05-16 22:00:22 UTC
Size:
1.86 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/Makefile /usr/ports/graphics/mupdf/Makefile >--- /usr/ports/graphics/mupdf.orig/Makefile 2011-05-07 09:21:43.000000000 -0500 >+++ /usr/ports/graphics/mupdf/Makefile 2011-05-16 15:30:17.641449744 -0500 >@@ -6,6 +6,7 @@ > > PORTNAME= mupdf > PORTVERSION= 0.8.165 >+PORTREVISION= 1 > PORTEPOCH= 1 > CATEGORIES= graphics > MASTER_SITES= GOOGLE_CODE \ >@@ -31,6 +32,12 @@ > LICENSE= GPLv3 > LICENSE_FILE= ${WRKSRC}/COPYING > >+.include <bsd.port.options.mk> >+ >+.if defined(WITH_SCROLL) >+EXTRA_PATCHES+= ${FILESDIR}/scroll_hack-apps_pdfapp.c >+.endif >+ > post-patch: .SILENT > ${REINPLACE_CMD} \ > -e 's#\(PDF_APPS :=.*/\)#\1mu_#' \ >diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/files/scroll_hack-apps_pdfapp.c /usr/ports/graphics/mupdf/files/scroll_hack-apps_pdfapp.c >--- /usr/ports/graphics/mupdf.orig/files/scroll_hack-apps_pdfapp.c 1969-12-31 18:00:00.000000000 -0600 >+++ /usr/ports/graphics/mupdf/files/scroll_hack-apps_pdfapp.c 2011-05-16 15:35:13.782785093 -0500 >@@ -0,0 +1,34 @@ >+--- apps/pdfapp.c.orig 2011-04-29 14:06:09.000000000 -0500 >++++ apps/pdfapp.c 2011-05-16 15:34:57.393494127 -0500 >+@@ -777,11 +777,15 @@ void pdfapp_onkey(pdfapp_t *app, int c) >+ break; >+ >+ case 'j': >++ if (app->pany + app->image->h <= app->winh) >++ goto pagedown; >+ app->pany -= app->image->h / 10; >+ pdfapp_showpage(app, 0, 0, 1); >+ break; >+ >+ case 'k': >++ if (app->pany >= 0) >++ goto pageup; >+ app->pany += app->image->h / 10; >+ pdfapp_showpage(app, 0, 0, 1); >+ break; >+@@ -843,6 +847,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) >+ */ >+ >+ case ',': >++ pageup: >+ panto = PAN_TO_BOTTOM; >+ if (app->numberlen > 0) >+ app->pageno -= atoi(app->number); >+@@ -851,6 +856,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) >+ break; >+ >+ case '.': >++ pagedown: >+ panto = PAN_TO_TOP; >+ if (app->numberlen > 0) >+ app->pageno += atoi(app->number);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157095
: 115318 |
115319
|
115320
|
115321