From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 17 04:50:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C45D1065673 for ; Tue, 17 May 2011 04:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F08EC8FC12 for ; Tue, 17 May 2011 04:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4H4oABk044439 for ; Tue, 17 May 2011 04:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4H4oARg044438; Tue, 17 May 2011 04:50:10 GMT (envelope-from gnats) Date: Tue, 17 May 2011 04:50:10 GMT Message-Id: <201105170450.p4H4oARg044438@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Zhihao Yuan Cc: Subject: Re: ports/157095: graphics/mupdf: optional scroll hack X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhihao Yuan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 04:50:11 -0000 The following reply was made to PR ports/157095; it has been noted by GNATS. From: Zhihao Yuan To: bug-followup@freebsd.org Cc: Subject: Re: ports/157095: graphics/mupdf: optional scroll hack Date: Mon, 16 May 2011 23:43:26 -0500 --0016368e2ffbaf7a7904a37169fa Content-Type: text/plain; charset=UTF-8 This one includes 2 patches. The scroll hack one is stable enough and not changed. The new one changes MuPDF's hard-coded DPI (72) with a X DPI detection (opens and closes a X Display within a function); this patch is not optional (since these is no need to keep the old way). -- Zhihao Yuan The best way to predict the future is to invent it. --0016368e2ffbaf7a7904a37169fa Content-Type: application/octet-stream; name="mupdf_1.patch" Content-Disposition: attachment; filename="mupdf_1.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gnscrcud0 ZGlmZiAtcnVOIC0tZXhjbHVkZT1DVlMgL3Vzci9wb3J0cy9ncmFwaGljcy9tdXBkZi5vcmlnL01h a2VmaWxlIC91c3IvcG9ydHMvZ3JhcGhpY3MvbXVwZGYvTWFrZWZpbGUKLS0tIC91c3IvcG9ydHMv Z3JhcGhpY3MvbXVwZGYub3JpZy9NYWtlZmlsZQkyMDExLTA1LTA3IDA5OjIxOjQzLjAwMDAwMDAw MCAtMDUwMAorKysgL3Vzci9wb3J0cy9ncmFwaGljcy9tdXBkZi9NYWtlZmlsZQkyMDExLTA1LTE2 IDE1OjMwOjE3LjY0MTQ0OTc0NCAtMDUwMApAQCAtNiw2ICs2LDcgQEAKIAogUE9SVE5BTUU9CW11 cGRmCiBQT1JUVkVSU0lPTj0JMC44LjE2NQorUE9SVFJFVklTSU9OPQkxCiBQT1JURVBPQ0g9CTEK IENBVEVHT1JJRVM9CWdyYXBoaWNzCiBNQVNURVJfU0lURVM9CUdPT0dMRV9DT0RFIFwKQEAgLTMx LDYgKzMyLDEyIEBACiBMSUNFTlNFPQlHUEx2MwogTElDRU5TRV9GSUxFPQkke1dSS1NSQ30vQ09Q WUlORwogCisuaW5jbHVkZSA8YnNkLnBvcnQub3B0aW9ucy5taz4KKworLmlmIGRlZmluZWQoV0lU SF9TQ1JPTEwpCitFWFRSQV9QQVRDSEVTKz0JJHtGSUxFU0RJUn0vc2Nyb2xsX2hhY2stYXBwc19w ZGZhcHAuYworLmVuZGlmCisKIHBvc3QtcGF0Y2g6CS5TSUxFTlQKIAkke1JFSU5QTEFDRV9DTUR9 IFwKIAkJLWUgJ3MjXChQREZfQVBQUyA6PS4qL1wpI1wxbXVfIycgXApkaWZmIC1ydU4gLS1leGNs dWRlPUNWUyAvdXNyL3Bv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