GNU bug report logs - #54040
29.0.50; Text becomes blurry on PGTK/Wayland

Previous Next

Package: emacs;

Reported by: Thomas Jost <schnouki <at> schnouki.net>

Date: Thu, 17 Feb 2022 12:08:01 UTC

Severity: normal

Found in version 29.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thomas Jost <schnouki <at> schnouki.net>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 54040 <at> debbugs.gnu.org
Subject: bug#54040: 29.0.50; Text becomes blurry on PGTK/Wayland
Date: Fri, 18 Feb 2022 08:25:36 +0100
Le 18 février 2022 à 08:58 +08, Po Lu a écrit :
> Thomas Jost <schnouki <at> schnouki.net> writes:
>
>> Attached is a patch that seems to solve this issue for me without
>> completely reverting that commit. I'm not sure if it's really a correct
>> fix; please email me if you need any more details or testing!
>
> I understand why your fix works, but please see if this change fixes the
> problem, thanks:
>
> diff --git a/src/pgtkterm.c b/src/pgtkterm.c
> index 65408801cf..bc47c0471d 100644
> --- a/src/pgtkterm.c
> +++ b/src/pgtkterm.c
> @@ -2932,9 +2932,8 @@ pgtk_copy_bits (struct frame *f, cairo_rectangle_t *src_rect,
>  
>    surface =
>      gdk_window_create_similar_surface (window, CAIRO_CONTENT_COLOR_ALPHA,
> -				       FRAME_CR_SURFACE_DESIRED_WIDTH (f),
> -				       FRAME_CR_SURFACE_DESIRED_HEIGHT
> -				       (f));
> +				       (int) src_rect->width,
> +				       (int) src_rect->height);
>  
>    cr = cairo_create (surface);
>    cairo_set_source_surface (cr, FRAME_CR_SURFACE (f), -src_rect->x,

This was the first thing I tried as well, but this didn't solve this
issue for me, and I had to revert to cairo_surface_create_similar(). I
don't know how they are different, but I couldn't get it to work with
gdk_window_create_similar_surface().

-- 
Thomas




This bug report was last modified 3 years and 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.