diff options
author | Victor Kareh <[email protected]> | 2018-04-10 00:52:39 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-25 20:58:04 +0200 |
commit | 6d06e188de6c50ba0a5d16372c6e300d22b53a95 (patch) | |
tree | 37a4e753984c1bc4813d53c1b10fda80d93b42ed /libmate-desktop/mate-bg.h | |
parent | 1aa9a47b34ad7bad501e9b0911bb314456e8c369 (diff) | |
download | mate-desktop-6d06e188de6c50ba0a5d16372c6e300d22b53a95.tar.bz2 mate-desktop-6d06e188de6c50ba0a5d16372c6e300d22b53a95.tar.xz |
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.
Diffstat (limited to 'libmate-desktop/mate-bg.h')
-rw-r--r-- | libmate-desktop/mate-bg.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |