[clutter/clutter-1.12] Wayland: Set default font DPI to 96
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.12] Wayland: Set default font DPI to 96
- Date: Wed, 17 Oct 2012 08:59:11 +0000 (UTC)
commit 3f0e3c11ea6b5c719ed0c87c5afd22267cb8b580
Author: Daniel Stone <daniel fooishbar org>
Date: Tue Sep 18 10:49:00 2012 +1000
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>
clutter/wayland/clutter-backend-wayland.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c
index aa945e4..3717d4f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]