From 6d06e188de6c50ba0a5d16372c6e300d22b53a95 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 10 Apr 2018 00:52:39 -0400 Subject: Support background fallback on HiDPI This change is a super hacky way of supporting the fallback desktop background (without caja) on HiDPI displays. It does this by doing two things: providing a function for scaled-up background surfaces using cairo_scale; and triggering a change signal when the entire background schema is re-loaded, and so triggering a redraw. --- libmate-desktop/mate-bg.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libmate-desktop/mate-bg.h') diff --git a/libmate-desktop/mate-bg.h b/libmate-desktop/mate-bg.h index a1adf36..16fda8c 100644 --- a/libmate-desktop/mate-bg.h +++ b/libmate-desktop/mate-bg.h @@ -127,6 +127,13 @@ cairo_surface_t *mate_bg_create_surface (MateBG *bg, int height, gboolean root); +cairo_surface_t *mate_bg_create_surface_scale (MateBG *bg, + GdkWindow *window, + int width, + int height, + int scale, + gboolean root); + gboolean mate_bg_get_image_size (MateBG *bg, MateDesktopThumbnailFactory *factory, int best_width, -- cgit v1.2.1