mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Merge a38682cee4
into beaeb0d4af
This commit is contained in:
commit
d99970f73a
@ -971,6 +971,11 @@ extern "C" {
|
|||||||
* The vertical resize arrow shape.
|
* The vertical resize arrow shape.
|
||||||
*/
|
*/
|
||||||
#define GLFW_VRESIZE_CURSOR 0x00036006
|
#define GLFW_VRESIZE_CURSOR 0x00036006
|
||||||
|
/*! @brief The wait/hourglass shape.
|
||||||
|
*
|
||||||
|
* The wait/hourglass shape.
|
||||||
|
*/
|
||||||
|
#define GLFW_WAIT_CURSOR 0x00036007
|
||||||
/*! @} */
|
/*! @} */
|
||||||
|
|
||||||
#define GLFW_CONNECTED 0x00040001
|
#define GLFW_CONNECTED 0x00040001
|
||||||
|
@ -464,7 +464,8 @@ GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape)
|
|||||||
shape != GLFW_CROSSHAIR_CURSOR &&
|
shape != GLFW_CROSSHAIR_CURSOR &&
|
||||||
shape != GLFW_HAND_CURSOR &&
|
shape != GLFW_HAND_CURSOR &&
|
||||||
shape != GLFW_HRESIZE_CURSOR &&
|
shape != GLFW_HRESIZE_CURSOR &&
|
||||||
shape != GLFW_VRESIZE_CURSOR)
|
shape != GLFW_VRESIZE_CURSOR &&
|
||||||
|
shape != GLFW_WAIT_CURSOR)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_INVALID_ENUM, "Invalid standard cursor %i", shape);
|
_glfwInputError(GLFW_INVALID_ENUM, "Invalid standard cursor %i", shape);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -324,6 +324,8 @@ static LPWSTR translateCursorShape(int shape)
|
|||||||
return IDC_SIZEWE;
|
return IDC_SIZEWE;
|
||||||
case GLFW_VRESIZE_CURSOR:
|
case GLFW_VRESIZE_CURSOR:
|
||||||
return IDC_SIZENS;
|
return IDC_SIZENS;
|
||||||
|
case GLFW_WAIT_CURSOR:
|
||||||
|
return IDC_WAIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -182,6 +182,8 @@ static int translateCursorShape(int shape)
|
|||||||
return XC_sb_h_double_arrow;
|
return XC_sb_h_double_arrow;
|
||||||
case GLFW_VRESIZE_CURSOR:
|
case GLFW_VRESIZE_CURSOR:
|
||||||
return XC_sb_v_double_arrow;
|
return XC_sb_v_double_arrow;
|
||||||
|
case GLFW_WAIT_CURSOR:
|
||||||
|
return XC_watch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user