Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 886157
Collapse All | Expand All

(-)a/gdk/x11/gdkxftdefaults.c (-2 / +2 lines)
Lines 174-180 init_xft_settings (GdkScreen *screen) Link Here
174
    x11_screen->xft_rgba = FC_RGBA_UNKNOWN;
174
    x11_screen->xft_rgba = FC_RGBA_UNKNOWN;
175
175
176
  if (!get_double_default (xdisplay, "dpi", &dpi_double))
176
  if (!get_double_default (xdisplay, "dpi", &dpi_double))
177
    dpi_double = 96.0;
177
    dpi_double = (DisplayHeight(xdisplay, x11_screen->screen_num)*25.4)/
178
		    DisplayHeightMM(xdisplay, x11_screen->screen_num);
178
179
179
  x11_screen->xft_dpi = (int)(0.5 + PANGO_SCALE * dpi_double);
180
  x11_screen->xft_dpi = (int)(0.5 + PANGO_SCALE * dpi_double);
180
}
181
}
181
- 

Return to bug 886157