From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel Subject: Re: porting to Wayland Date: Tue, 25 Nov 2014 16:49:52 +0900 Message-ID: References: <87fvi6unfi.fsf-ueno@gnu.org> <53C24B44.3000304@swipnet.se> <54639270.2020609@swipnet.se> <54647503.9050607@swipnet.se> <547211CC.5090803@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1416901810 3578 80.91.229.3 (25 Nov 2014 07:50:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 07:50:10 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 25 08:50:04 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtAsu-0000Ex-Gp for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2014 08:50:04 +0100 Original-Received: from localhost ([::1]:55814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtAsu-0005zM-5J for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2014 02:50:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtAsq-0005zC-FU for emacs-devel@gnu.org; Tue, 25 Nov 2014 02:50:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtAso-0005Ri-MZ for emacs-devel@gnu.org; Tue, 25 Nov 2014 02:50:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtAso-0005Re-It for emacs-devel@gnu.org; Tue, 25 Nov 2014 02:49:58 -0500 Original-Received: from du-a.org ([2001:e41:db5e:fb14::1]:52168 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XtAsm-0006fc-OC; Tue, 25 Nov 2014 02:49:57 -0500 In-Reply-To: <547211CC.5090803@swipnet.se> ("Jan \=\?iso-8859-1\?Q\?Dj\=E4rv\=22\?\= \=\?iso-8859-1\?Q\?'s\?\= message of "Sun, 23 Nov 2014 17:56:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178221 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Jan Dj=E4rv writes: > Ok, here goes. Thanks! > Image support sucks, only PNG from files. Some redraw issues > (esp. Gtk scrollbars) remain. > If you choose Gtk3 as toolkit, cairo is forced, otherwise > give--with-cairo to configure. I've tried the patch. For PNG support, I had to apply the attached patch and run configure with: ./configure --with-x-toolkit=3Dgtk3 --with-cairo --without-imagemagick The output for printing (with x-export-frames) looks great.=20=20 > Performance is not that great, straight X is faster. It's already fast enough for me, but it doesn't do rendering in ::draw signal, right? If it did, would the speed considerablly slow down? Regards, -- Daiki Ueno --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=png.patch diff --git a/configure.ac b/configure.ac index ac0b86e..a84637d 100644 --- a/configure.ac +++ b/configure.ac @@ -3042,7 +3042,6 @@ if test "${HAVE_X11}" = "yes"; then fi with_xpm=no with_jpeg=no - with_png=no with_gif=no with_tiff=no diff --git a/src/image.c b/src/image.c index 77e5523..ad31719 100644 --- a/src/image.c +++ b/src/image.c @@ -5459,7 +5459,7 @@ pbm_load (struct frame *f, struct image *img) PNG ***********************************************************************/ -#if defined (HAVE_XPM) || defined (HAVE_NS) || defined (USE_CAIRO) +#if defined (HAVE_PNG) || defined (HAVE_NS) || defined (USE_CAIRO) /* Function prototypes. */ --=-=-=--