Created attachment 7508 [details] New function int get_dpi(); returns 0 when failed My method is to open a X display and close it within a function, get_dpi(). The hard coded DPI(72) is somewhat not proper.
*** This bug has been marked as a duplicate of bug 691330 ***