mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Removed return value of _glfwPlatformTerminate.
This commit is contained in:
parent
0dd5d20c77
commit
9af61d06cf
|
@ -120,7 +120,7 @@ int _glfwPlatformInit(void)
|
|||
// Close window, if open, and shut down GLFW
|
||||
//========================================================================
|
||||
|
||||
int _glfwPlatformTerminate(void)
|
||||
void _glfwPlatformTerminate(void)
|
||||
{
|
||||
// TODO: Probably other cleanup
|
||||
|
||||
|
@ -146,8 +146,6 @@ int _glfwPlatformTerminate(void)
|
|||
_glfwTerminateJoysticks();
|
||||
|
||||
_glfwTerminateOpenGL();
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -149,8 +149,7 @@ GLFWAPI void glfwTerminate(void)
|
|||
while (_glfwLibrary.windowListHead)
|
||||
glfwDestroyWindow(_glfwLibrary.windowListHead);
|
||||
|
||||
if (!_glfwPlatformTerminate())
|
||||
return;
|
||||
_glfwPlatformTerminate();
|
||||
|
||||
if (_glfwLibrary.modes)
|
||||
free(_glfwLibrary.modes);
|
||||
|
|
|
@ -260,7 +260,7 @@ extern _GLFWlibrary _glfwLibrary;
|
|||
|
||||
// Platform init and version
|
||||
int _glfwPlatformInit(void);
|
||||
int _glfwPlatformTerminate(void);
|
||||
void _glfwPlatformTerminate(void);
|
||||
const char* _glfwPlatformGetVersionString(void);
|
||||
|
||||
// Input mode support
|
||||
|
|
|
@ -200,7 +200,7 @@ int _glfwPlatformInit(void)
|
|||
// Close window and shut down library
|
||||
//========================================================================
|
||||
|
||||
int _glfwPlatformTerminate(void)
|
||||
void _glfwPlatformTerminate(void)
|
||||
{
|
||||
// Restore the original gamma ramp
|
||||
if (_glfwLibrary.rampChanged)
|
||||
|
@ -220,8 +220,6 @@ int _glfwPlatformTerminate(void)
|
|||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0,
|
||||
UIntToPtr(_glfwLibrary.Win32.foregroundLockTimeout),
|
||||
SPIF_SENDCHANGE);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -662,7 +662,7 @@ int _glfwPlatformInit(void)
|
|||
// Close window and shut down library
|
||||
//========================================================================
|
||||
|
||||
int _glfwPlatformTerminate(void)
|
||||
void _glfwPlatformTerminate(void)
|
||||
{
|
||||
if (_glfwLibrary.X11.cursor)
|
||||
{
|
||||
|
@ -681,8 +681,6 @@ int _glfwPlatformTerminate(void)
|
|||
// Free clipboard memory
|
||||
if (_glfwLibrary.X11.selection.string)
|
||||
free(_glfwLibrary.X11.selection.string);
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user