diff options
Diffstat (limited to 'capplets/appearance/appearance-font.c')
-rw-r--r-- | capplets/appearance/appearance-font.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c index 0df8d4eb..cd1a4e54 100644 --- a/capplets/appearance/appearance-font.c +++ b/capplets/appearance/appearance-font.c @@ -422,6 +422,7 @@ get_dpi_from_x_server (void) { GdkScreen *screen; double dpi; + gint scale; screen = gdk_screen_get_default (); @@ -443,6 +444,10 @@ get_dpi_from_x_server (void) dpi = DPI_FALLBACK; } + scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen)); + if (scale) + dpi = dpi * scale; + return dpi; } |