mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
fixed typos
This commit is contained in:
parent
6217a1231b
commit
58fe32493d
@ -359,7 +359,7 @@ void _glfwPlatformTerminate(void)
|
|||||||
_glfwTerminateNSGL();
|
_glfwTerminateNSGL();
|
||||||
_glfwTerminateJoysticksNS();
|
_glfwTerminateJoysticksNS();
|
||||||
|
|
||||||
_glfwDestroyAutorealeasePool();
|
_glfwDestroyAutoreleasePool();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* _glfwPlatformGetVersionString(void)
|
const char* _glfwPlatformGetVersionString(void)
|
||||||
@ -390,9 +390,8 @@ void _glfwCreateAutoreleasePool()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clears and resets the autorealease pool if GLFW is managing its own even loop,
|
// Clears and resets the autorelease pool only if if GLFW is managing its own
|
||||||
// and not using the built-in NSApplication event loop. GLFW creates its own
|
// event loop, and not using the built-in NSApplication event loop.
|
||||||
// autorelease pool only if it is running its own event loop
|
|
||||||
void _glfwResetAutoreleasePool()
|
void _glfwResetAutoreleasePool()
|
||||||
{
|
{
|
||||||
if(!isNSApplicationRunning())
|
if(!isNSApplicationRunning())
|
||||||
@ -402,7 +401,7 @@ void _glfwResetAutoreleasePool()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwDestroyAutorealeasePool()
|
void _glfwDestroyAutoreleasePool()
|
||||||
{
|
{
|
||||||
if(!isNSApplicationRunning())
|
if(!isNSApplicationRunning())
|
||||||
{
|
{
|
||||||
|
@ -162,12 +162,11 @@ void _glfwPollMonitorsNS(void);
|
|||||||
GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired);
|
GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired);
|
||||||
void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor);
|
void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor);
|
||||||
|
|
||||||
// If GLFW is running as a stand-alone application, we create a global autorealease
|
// If GLFW is running as a stand-alone application, we create a global autorelease
|
||||||
// pool. If GLFW is running in an existing native Cocoa app, the underlying
|
// pool. If GLFW is running in an existing native Cocoa app, the underlying
|
||||||
// NSApplication creates its own autorelease pool. These functions check if GLFW
|
// NSApplication create its own autorelease pool. These functions check if GLFW
|
||||||
// is running in a Cocoa app or not, and creates the autorealease pool accordingly.
|
// is running in a Cocoa app or not, and creates the autorelease pool accordingly.
|
||||||
// If GLFW is in a Cocoa app, these functions don't do anything
|
// If GLFW is in a Cocoa app, these functions don't do anything
|
||||||
void _glfwCreateAutoreleasePool();
|
void _glfwCreateAutoreleasePool();
|
||||||
void _glfwResetAutoreleasePool();
|
void _glfwResetAutoreleasePool();
|
||||||
void _glfwDestroyAutorealeasePool();
|
void _glfwDestroyAutoreleasePool();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user