瀏覽代碼

Made arrays returned by public API const.

Camilla Berglund 12 年之前
父節點
當前提交
e38b752465
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/GL/glfw3.h

+ 2 - 2
include/GL/glfw3.h

@@ -989,7 +989,7 @@ GLFWAPI void glfwSetErrorCallback(GLFWerrorfun cbfun);
  *  @return An array of monitor handles.
  *  @return An array of monitor handles.
  *  @ingroup monitor
  *  @ingroup monitor
  */
  */
-GLFWAPI GLFWmonitor* glfwGetMonitors(int* count);
+GLFWAPI const GLFWmonitor* glfwGetMonitors(int* count);
 
 
 /*! @brief Returns the primary monitor.
 /*! @brief Returns the primary monitor.
  *  @return The primary monitor.
  *  @return The primary monitor.
@@ -1038,7 +1038,7 @@ GLFWAPI void glfwSetMonitorCallback(GLFWmonitorfun cbfun);
  *  @return An array of video modes.
  *  @return An array of video modes.
  *  @ingroup monitor
  *  @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.
 /*! @brief Returns the current mode of the specified monitor.
  *  @param[in] monitor The monitor to query.
  *  @param[in] monitor The monitor to query.