DLOG("Found Xft.dpi = %ld.\n", dpi);
init_dpi_end:
+ if (resource != NULL) {
+ free(resource);
+ }
+
if (database != NULL) {
xcb_xrm_database_free(database);
}
}
}
+/*
+ * 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