summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-09-18 10:49:00 +1000
committerEmmanuele Bassi <ebassi@gnome.org>2012-10-13 18:12:28 +0100
commit3f0e3c11ea6b5c719ed0c87c5afd22267cb8b580 (patch)
tree91224e48e7137a0908cc5584237a81c5a608ce75
parent437679c0533583f006616ae811b7340183bacec3 (diff)
downloadclutter-3f0e3c11ea6b5c719ed0c87c5afd22267cb8b580.tar.gz
Wayland: Set default font DPI to 96
Otherwise the units test fails, since the default DPI is set to -1. Signed-off-by: Daniel Stone <daniel@fooishbar.org> (cherry picked from commit 978202aa49fc7a16bec4438a95466d6071c9dfb1) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
-rw-r--r--clutter/wayland/clutter-backend-wayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c
index aa945e41d..3717d4fdf 100644
--- a/clutter/wayland/clutter-backend-wayland.c
+++ b/clutter/wayland/clutter-backend-wayland.c
@@ -176,6 +176,8 @@ clutter_backend_wayland_post_parse (ClutterBackend *backend,
_clutter_event_source_wayland_new (backend_wayland->wayland_display);
g_source_attach (backend_wayland->wayland_source, NULL);
+ g_object_set (clutter_settings_get_default (), "font-dpi", 96 * 1024, NULL);
+
/* XXX: We require the device manager to exist as soon as we connect to the
* compositor and setup an event handler because we will immediately be
* notified of the available input devices which need to be associated with