Code formatting
This commit is contained in:
parent
61f6b0f707
commit
e5a2def57f
1 changed files with 6 additions and 6 deletions
12
src/core.c
12
src/core.c
|
@ -561,14 +561,14 @@ void HideCursor()
|
||||||
{
|
{
|
||||||
#if defined(PLATFORM_DESKTOP)
|
#if defined(PLATFORM_DESKTOP)
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
XColor Col;
|
XColor col;
|
||||||
const char Nil[] = {0};
|
const char nil[] = {0};
|
||||||
|
|
||||||
Pixmap Pix = XCreateBitmapFromData(glfwGetX11Display(), glfwGetX11Window(window), Nil, 1, 1);
|
Pixmap pix = XCreateBitmapFromData(glfwGetX11Display(), glfwGetX11Window(window), nil, 1, 1);
|
||||||
Cursor Cur = XCreatePixmapCursor(glfwGetX11Display(), Pix, Pix, &Col, &Col, 0, 0);
|
Cursor cur = XCreatePixmapCursor(glfwGetX11Display(), pix, pix, &col, &col, 0, 0);
|
||||||
|
|
||||||
XDefineCursor(glfwGetX11Display(), glfwGetX11Window(window), Cur);
|
XDefineCursor(glfwGetX11Display(), glfwGetX11Window(window), cur);
|
||||||
XFreeCursor(glfwGetX11Display(), Cur);
|
XFreeCursor(glfwGetX11Display(), cur);
|
||||||
#else
|
#else
|
||||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN);
|
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue