Infrastructure for rendering cells in the test suite
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user