Author: kelnos
Date: 2008-09-10 10:35:47 +0000 (Wed, 10 Sep 2008)
New Revision: 27798
Modified:
xfconf/trunk/xfsettingsd/registry.c
Log:
don't use 1024 scaling factor on Xft/DPI when it's -1
Modified: xfconf/trunk/xfsettingsd/registry.c
===================================================================
--- xfconf/trunk/xfsettingsd/registry.c 2008-09-10 07:13:38 UTC (rev 27797)
+++ xfconf/trunk/xfsettingsd/registry.c 2008-09-10 10:35:47 UTC (rev 27798)
@@ -515,8 +515,12 @@
}
break;
case G_TYPE_INT:
- /* FIXME: Why does Xft/DPI need special treatment? */
- if (strcmp (entry->name, "Xft/DPI") == 0)
+ /* See
http://www.freedesktop.org/wiki/Specifications/XSettingsRegistry
+ * for an explanation. Weirdly, this is still not correct, as
+ * font sizes with -1 DPI and a forced setting equal to the X
+ * server's calculated DPI don't match. Need to look into
+ * this a bit more. */
+ if (strcmp (entry->name, "Xft/DPI") == 0 &&
g_value_get_int(&entry->value) != -1)
*(CARD32 *)pos = g_value_get_int(&entry->value) * 1024;
else
*(CARD32 *)pos = g_value_get_int(&entry->value);
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits