lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 34 lines 1.4 kB view raw
1From 269f2d80ea41cde17612600841fbdc32e99010f5 Mon Sep 17 00:00:00 2001 2From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> 3Date: Tue, 24 Jan 2017 12:30:08 +0100 4Subject: [PATCH] Xft setting fallback: compute DPI properly 5 6This is a partial revert of bdf0820c501437a2150d8ff0d5340246e713f73f. If 7the Xft DPI settings are not explicitly set, use the values provided by 8the X server rather than hard-coding the fallback value of 96. 9 10While an auto-configured Xorg already reports 96, this value can be 11overriden by the user, and we should respect the user choice in this 12case. There is no need to require them to set the same value in 13different places (the Xorg DPI settings and Xft.dpi). 14--- 15 gdk/x11/gdkxftdefaults.c | 3 ++- 16 1 file changed, 2 insertions(+), 1 deletion(-) 17 18diff --git a/gdk/x11/gdkxftdefaults.c b/gdk/x11/gdkxftdefaults.c 19index fa1cfde2ec..c462b78c4b 100644 20--- a/gdk/x11/gdkxftdefaults.c 21+++ b/gdk/x11/gdkxftdefaults.c 22@@ -174,7 +174,8 @@ init_xft_settings (GdkScreen *screen) 23 x11_screen->xft_rgba = FC_RGBA_UNKNOWN; 24 25 if (!get_double_default (xdisplay, "dpi", &dpi_double)) 26- dpi_double = 96.0; 27+ dpi_double = (DisplayHeight(xdisplay, x11_screen->screen_num)*25.4)/ 28+ DisplayHeightMM(xdisplay, x11_screen->screen_num); 29 30 x11_screen->xft_dpi = (int)(0.5 + PANGO_SCALE * dpi_double); 31 } 32-- 332.11.0.616.gd72966cf44.dirty 34