From da44653fe551f6333fe9bceb07d6923b47e17fd3 Mon Sep 17 00:00:00 2001 From: Jerry Tworek <jerry@millionintegrals.com> Date: Mon, 12 Aug 2019 14:12:55 -0700 Subject: [PATCH] Making test for retina screen more strict. --- mujoco_py/opengl_context.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mujoco_py/opengl_context.pyx b/mujoco_py/opengl_context.pyx index 1b5c8b8..34e84dd 100644 --- a/mujoco_py/opengl_context.pyx +++ b/mujoco_py/opengl_context.pyx @@ -111,7 +111,7 @@ class GlfwContext(OpenGLContext): # HAX: When running on a Mac with retina screen, the size # sometimes doubles width, height = glfw.get_framebuffer_size(self.window) - if target_width != width: + if target_width != width and "darwin" in sys.platform.lower(): glfw.set_window_size(self.window, target_width // 2, target_height // 2) @staticmethod -- GitLab