From e38b75246576ce9c17cd29129a0db9e91bc2d82c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 2 Dec 2012 21:08:26 +0100 Subject: [PATCH] Made arrays returned by public API const. --- include/GL/glfw3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index 2eab82c6..76b50fbe 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -989,7 +989,7 @@ GLFWAPI void glfwSetErrorCallback(GLFWerrorfun cbfun); * @return An array of monitor handles. * @ingroup monitor */ -GLFWAPI GLFWmonitor* glfwGetMonitors(int* count); +GLFWAPI const GLFWmonitor* glfwGetMonitors(int* count); /*! @brief Returns the primary monitor. * @return The primary monitor. @@ -1038,7 +1038,7 @@ GLFWAPI void glfwSetMonitorCallback(GLFWmonitorfun cbfun); * @return An array of video modes. * @ingroup monitor */ -GLFWAPI GLFWvidmode* glfwGetVideoModes(GLFWmonitor monitor, int* count); +GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor monitor, int* count); /*! @brief Returns the current mode of the specified monitor. * @param[in] monitor The monitor to query.