Public
Authored by FrHun

gnome-software screenshot scaling problems

Related to issue: https://gitlab.gnome.org/GNOME/gnome-software/issues/90

With this patch applied at 200%: Bildschirmfoto_von_2019-05-17_13-58-13 With this patch applied at 100%: Bildschirmfoto_von_2019-05-17_13-57-27 Without this patch at 200%: Bildschirmfoto_von_2019-05-17_13-58-53 Without this patch at 100%: Bildschirmfoto_von_2019-05-17_13-59-21

The patch below fixes the cropped image on 200% scaling but the detection of screenshots that are actually meant to use the wallpaper composition feature seems to be completely broken, as it behaves differently depending on the scaling factor.

Weird alpha detection: https://gitlab.gnome.org/GNOME/gnome-software/blob/master/src/gs-screenshot-image.c#L105

source of detection: https://github.com/hughsie/appstream-glib/blob/0ce2e0b8e8d2dd9be986a7fced0450aa71f181bd/libappstream-glib/as-image.c#L897

Edited
scaling.diff 1.56 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment