GNU bug report logs -
#31288
27.0.50; [PATCH] Make cairo build somewhat usable
Previous Next
Reported by: Ari Roponen <ari.roponen <at> gmail.com>
Date: Fri, 27 Apr 2018 13:20:02 UTC
Severity: normal
Tags: patch
Found in version 27.0.50
Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 31288 <at> debbugs.gnu.org (full text, mbox):
> From: Ari Roponen <ari.roponen <at> gmail.com>
> Date: Fri, 27 Apr 2018 16:19:16 +0300
>
> Attached are two patches to make --with-cairo builds more usable.
>
> First patch tries to fix screen corruption, and the second patch allows
> cairo builds to display images.
Thank you for working on this.
Please allow me a couple of minor comments on the changes:
> @@ -1236,7 +1231,8 @@ x_update_end (struct frame *f)
> {
> cairo_t *cr = 0;
> block_input();
> -#if defined (USE_GTK) && defined (HAVE_GTK3)
> + /* FIXME */
> +#if 0 && defined (USE_GTK) && defined (HAVE_GTK3)
> if (FRAME_GTK_WIDGET (f))
> {
> GdkWindow *w = gtk_widget_get_window (FRAME_GTK_WIDGET (f));
This hunk doesn't look right. If the code in question causes some
trouble to a Cairo build, please ifdef it out only when USE_CAIRO is
defined, not unconditionally. And if that still needs a FIXME
comment, please add some description of what needs to be fixed and
why.
> + cairo_surface_destroy (s);
> + } else {
> + SET_FRAME_GARBAGED (f);
Please use GNU style of braces.
Thanks again.
This bug report was last modified 6 years and 118 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.