mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Output detected DPI to debug system.
This commit is contained in:
parent
0ebd6a260b
commit
2306e58a25
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue