summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-04-10 00:52:39 -0400
committerraveit65 <[email protected]>2018-04-25 21:04:13 +0200
commitb24f151ee9f92ccec7fd493b1065f0b1ee2d0f10 (patch)
tree5c80885a775380db2cb665ad286293a6b0473639 /libmate-desktop/mate-bg.h
parentabaa1e43a86bcc2a764ea15d6b3394b8889cfb3f (diff)
downloadmate-desktop-b24f151ee9f92ccec7fd493b1065f0b1ee2d0f10.tar.bz2
mate-desktop-b24f151ee9f92ccec7fd493b1065f0b1ee2d0f10.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.h7
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,