Use the DPI setting within the i3bar (#2556)

This commit is contained in:
mihaicmn
2016-11-12 16:34:54 +02:00
committed by Michael Stapelberg
parent 6e519e18e1
commit ad7dec31d5
4 changed files with 17 additions and 13 deletions

View File

@ -64,6 +64,14 @@ init_dpi_end:
}
}
/*
* This function returns the value of the DPI setting.
*
*/
long get_dpi_value(void) {
return dpi;
}
/*
* Convert a logical amount of pixels (e.g. 2 pixels on a “standard” 96 DPI
* screen) to a corresponding amount of physical pixels on a standard or retina