diff options
author | Cosimo Cecchi <[email protected]> | 2013-08-02 14:37:13 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-04-04 21:53:21 -0400 |
commit | bc1405c9f54e19e74f973581130229ef1053ff9c (patch) | |
tree | 8ae544cad7a3b815ff6c48304ced204f37dd4947 /src/caja-desktop-window.c | |
parent | 779e0af4042b6572d729190067cfee6a876d73e5 (diff) | |
download | caja-bc1405c9f54e19e74f973581130229ef1053ff9c.tar.bz2 caja-bc1405c9f54e19e74f973581130229ef1053ff9c.tar.xz |
Support HiDpi icons
Port the rendering of icons to cairo surfaces, so that we can apply the
GDK scale factor when rendering icons.
origin commit:
https://gitlab.gnome.org/GNOME/nautilus/commit/0d4555d7
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r-- | src/caja-desktop-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index aae03b5e..2aa0c2f5 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -268,7 +268,8 @@ static CajaIconInfo * real_get_icon (CajaWindow *window, CajaWindowSlot *slot) { - return caja_icon_info_lookup_from_name (CAJA_ICON_DESKTOP, 48); + gint scale = gtk_widget_get_scale_factor (GTK_WIDGET (window)); + return caja_icon_info_lookup_from_name (CAJA_ICON_DESKTOP, 48, scale); } static void |