summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-21 13:05:57 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-21 13:05:57 +0100
commit2306e58a2534ff26ebb9c93271908fabf0372ebd (patch)
tree6bc835c1d92aa24a35160684fe4576d3bebc0741
parent0ebd6a260b652e6d3820c7571683d87eea723dec (diff)
Output detected DPI to debug system.
-rw-r--r--source/view.c2
1 files changed, 2 insertions, 0 deletions
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 );
}