1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

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

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 );
}