determine screen resolution (DPI)
fixes #3