[Xfce4-commits] <xfce4-settings:master> Xfsettingsd: Don't set large dpi in xrdb (bug #8415).

Nick Schermer noreply at xfce.org
Sun Feb 12 18:20:01 CET 2012


Updating branch refs/heads/master
         to e49a92ae46fb9451d8d8a9c0eb1339d3c62d254d (commit)
       from fb267dc099353373e38cf88275cfc97cec040b1f (commit)

commit e49a92ae46fb9451d8d8a9c0eb1339d3c62d254d
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 12 18:18:03 2012 +0100

    Xfsettingsd: Don't set large dpi in xrdb (bug #8415).

 xfsettingsd/xsettings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfsettingsd/xsettings.c b/xfsettingsd/xsettings.c
index 4619d7e..c7eb4b2 100644
--- a/xfsettingsd/xsettings.c
+++ b/xfsettingsd/xsettings.c
@@ -615,7 +615,7 @@ xfce_xsettings_helper_notify_xft_update (GString      *resource,
 
             /* special case for dpi */
             if (strcmp (name, "Xft.dpi:") == 0)
-                num = CLAMP (num, DPI_LOW_REASONABLE, DPI_HIGH_REASONABLE) * 1024;
+                num = CLAMP (num, DPI_LOW_REASONABLE, DPI_HIGH_REASONABLE);
 
             g_snprintf  (s, sizeof (s), "%d", num);
             str = s;


More information about the Xfce4-commits mailing list