|
|
@ -659,9 +659,6 @@ static Cursor createNULLCursor(void) |
|
|
|
|
|
|
|
|
|
|
|
static void terminateDisplay(void) |
|
|
|
static void terminateDisplay(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (_glfwLibrary.originalRampSize && _glfwLibrary.rampChanged) |
|
|
|
|
|
|
|
_glfwPlatformSetGammaRamp(&_glfwLibrary.originalRamp); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_glfwLibrary.X11.display) |
|
|
|
if (_glfwLibrary.X11.display) |
|
|
|
{ |
|
|
|
{ |
|
|
|
XCloseDisplay(_glfwLibrary.X11.display); |
|
|
|
XCloseDisplay(_glfwLibrary.X11.display); |
|
|
@ -713,6 +710,8 @@ int _glfwPlatformTerminate(void) |
|
|
|
_glfwLibrary.X11.cursor = (Cursor) 0; |
|
|
|
_glfwLibrary.X11.cursor = (Cursor) 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_glfwTerminateGammaRamp(); |
|
|
|
|
|
|
|
|
|
|
|
terminateDisplay(); |
|
|
|
terminateDisplay(); |
|
|
|
|
|
|
|
|
|
|
|
_glfwTerminateJoysticks(); |
|
|
|
_glfwTerminateJoysticks(); |
|
|
|