mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Cleanup
This commit is contained in:
parent
70ffae7430
commit
bb3b3452f3
@ -620,7 +620,7 @@ static GLFWbool initExtensions(void)
|
|||||||
|
|
||||||
// Create a blank cursor for hidden and disabled cursor modes
|
// Create a blank cursor for hidden and disabled cursor modes
|
||||||
//
|
//
|
||||||
static Cursor createNULLCursor(void)
|
static Cursor createHiddenCursor(void)
|
||||||
{
|
{
|
||||||
unsigned char pixels[16 * 16 * 4];
|
unsigned char pixels[16 * 16 * 4];
|
||||||
GLFWimage image = { 16, 16, pixels };
|
GLFWimage image = { 16, 16, pixels };
|
||||||
@ -743,7 +743,7 @@ int _glfwPlatformInit(void)
|
|||||||
if (!initExtensions())
|
if (!initExtensions())
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
|
|
||||||
_glfw.x11.cursor = createNULLCursor();
|
_glfw.x11.cursor = createHiddenCursor();
|
||||||
|
|
||||||
if (XSupportsLocale())
|
if (XSupportsLocale())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user