summaryrefslogtreecommitdiff
path: root/src/core/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r--src/core/prefs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index b9f0362b..df6bed14 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1137,7 +1137,10 @@ meta_prefs_get_cursor_size (void)
int
meta_prefs_get_icon_size (void)
{
- return icon_size;
+ GdkWindow *window = gdk_get_default_root_window ();
+ gint scale = gdk_window_get_scale_factor (window);
+
+ return icon_size * scale;
}
int