This commit is contained in:
Kovid Goyal 2019-04-06 09:10:16 +05:30
parent c9644039b1
commit 790d630d17
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1031,8 +1031,8 @@ set_custom_cursor(PyObject *self UNUSED, PyObject *args) {
}
#define CASE(which, dest) {\
case which: \
standard_cursor = glfwCreateCursor(gimages, x, y, count); \
if (standard_cursor == NULL) { PyErr_SetString(PyExc_ValueError, "Failed to create custom cursor"); return NULL; } \
dest = glfwCreateCursor(gimages, x, y, count); \
if (dest == NULL) { PyErr_SetString(PyExc_ValueError, "Failed to create custom cursor"); return NULL; } \
break; \
}
switch(shape) {