From 0e86d3824b727ecac3c45b4618228f0e190f2823 Mon Sep 17 00:00:00 2001 From: BrandonSchaefer Date: Thu, 6 Nov 2014 12:20:57 -0800 Subject: [PATCH] * Fix crash from test/sharing. --- src/mir_window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mir_window.c b/src/mir_window.c index e21f319a1..5c11ee4aa 100644 --- a/src/mir_window.c +++ b/src/mir_window.c @@ -440,7 +440,9 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) { + if (width) *width = window->mir.width; + if (height) *height = window->mir.height; }