gnome-control-center/gnome-control-center-bnc427745-force-dpi.patch

17 lines
596 B
Diff
Raw Normal View History

Index: gnome-control-center-2.24.0/capplets/appearance/appearance-font.c
===================================================================
--- gnome-control-center-2.24.0.orig/capplets/appearance/appearance-font.c
+++ gnome-control-center-2.24.0/capplets/appearance/appearance-font.c
@@ -759,8 +759,10 @@ dpi_load (GConfClient *client,
if (value) {
dpi = gconf_value_get_float (value);
gconf_value_free (value);
- } else
+ } else {
dpi = get_dpi_from_x_server ();
+ dpi = DPI_FALLBACK;
+ }
if (dpi < DPI_LOW_REASONABLE_VALUE)
dpi = DPI_LOW_REASONABLE_VALUE;