mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Update DPI value once auto-detected.
This commit is contained in:
parent
ee9f5f71c1
commit
3556f65198
1 changed files with 1 additions and 0 deletions
|
@ -711,6 +711,7 @@ void __create_window ( MenuFlags menu_flags )
|
||||||
g_debug ( "Auto-detected DPI: %.2lf", dpi );
|
g_debug ( "Auto-detected DPI: %.2lf", dpi );
|
||||||
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
|
PangoFontMap *font_map = pango_cairo_font_map_get_default ();
|
||||||
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
|
pango_cairo_font_map_set_resolution ( (PangoCairoFontMap *) font_map, dpi );
|
||||||
|
config.dpi = dpi;
|
||||||
}
|
}
|
||||||
// Setup font.
|
// Setup font.
|
||||||
// Dummy widget.
|
// Dummy widget.
|
||||||
|
|
Loading…
Add table
Reference in a new issue