Removed tautological test.

This commit is contained in:
Camilla Berglund 2014-04-08 15:50:27 +02:00
parent 20792526c6
commit 5e008ad074

View File

@ -47,18 +47,13 @@ static int Max(int a, int b)
void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused)
{
if (focused)
{
if (_glfw.focusedWindow != window)
{
_glfw.focusedWindow = window;
if (window->callbacks.focus)
window->callbacks.focus((GLFWwindow*) window, focused);
}
}
else
{
if (_glfw.focusedWindow == window)
{
int i;
@ -81,7 +76,6 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused)
_glfwInputMouseClick(window, i, GLFW_RELEASE, 0);
}
}
}
}
void _glfwInputWindowPos(_GLFWwindow* window, int x, int y)