Formatting.

This commit is contained in:
Camilla Berglund 2012-09-16 12:42:51 +02:00
parent a2dab25b06
commit b711b2fc72

View File

@ -100,20 +100,21 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean activated)
{
if (activated)
{
if (_glfwLibrary.activeWindow != window)
{
if (_glfwLibrary.activeWindow == window)
return;
_glfwLibrary.activeWindow = window;
if (_glfwLibrary.windowFocusCallback)
_glfwLibrary.windowFocusCallback(window, activated);
}
}
else
{
if (_glfwLibrary.activeWindow == window)
{
int i;
if (_glfwLibrary.activeWindow != window)
return;
// Release all pressed keyboard keys
for (i = 0; i <= GLFW_KEY_LAST; i++)
{
@ -134,7 +135,6 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean activated)
_glfwLibrary.windowFocusCallback(window, activated);
}
}
}
//========================================================================