Output detected DPI to debug system.

This commit is contained in:
Dave Davenport 2017-01-21 13:05:57 +01:00
parent 0ebd6a260b
commit 2306e58a25
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,8 @@ void __create_window ( MenuFlags menu_flags )
else {
dpi = ( xcb->screen->height_in_pixels * 25.4 ) / (double) ( xcb->screen->height_in_millimeters );
}
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Auto-detected DPI: %.2lf", dpi );
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
}