From 2306e58a2534ff26ebb9c93271908fabf0372ebd Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 21 Jan 2017 13:05:57 +0100 Subject: [PATCH] Output detected DPI to debug system. --- source/view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/view.c b/source/view.c index 024c41e3..24ea9bcf 100644 --- a/source/view.c +++ b/source/view.c @@ -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 ); }