Infrastructure for rendering cells in the test suite

This commit is contained in:
Kovid Goyal
2017-11-09 16:55:41 +05:30
parent 7d7d82a68d
commit 0518cabef6
4 changed files with 81 additions and 9 deletions
+3 -1
View File
@@ -107,9 +107,11 @@ def x11_dpi():
pass
def get_logical_dpi():
def get_logical_dpi(override_dpi=None):
# See https://github.com/glfw/glfw/issues/1019 for why we cant use
# glfw_get_physical_dpi()
if override_dpi is not None:
get_logical_dpi.ans = override_dpi
if not hasattr(get_logical_dpi, 'ans'):
if isosx:
# TODO: Investigate if this needs a different implementation on OS X