bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54040: 29.0.50; Text becomes blurry on PGTK/Wayland


From: Thomas Jost
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@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]