Removed tautological test.
This commit is contained in:
parent
20792526c6
commit
5e008ad074
@ -47,18 +47,13 @@ static int Max(int a, int b)
|
|||||||
void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused)
|
void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused)
|
||||||
{
|
{
|
||||||
if (focused)
|
if (focused)
|
||||||
{
|
|
||||||
if (_glfw.focusedWindow != window)
|
|
||||||
{
|
{
|
||||||
_glfw.focusedWindow = window;
|
_glfw.focusedWindow = window;
|
||||||
|
|
||||||
if (window->callbacks.focus)
|
if (window->callbacks.focus)
|
||||||
window->callbacks.focus((GLFWwindow*) window, focused);
|
window->callbacks.focus((GLFWwindow*) window, focused);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (_glfw.focusedWindow == window)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -81,7 +76,6 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused)
|
|||||||
_glfwInputMouseClick(window, i, GLFW_RELEASE, 0);
|
_glfwInputMouseClick(window, i, GLFW_RELEASE, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwInputWindowPos(_GLFWwindow* window, int x, int y)
|
void _glfwInputWindowPos(_GLFWwindow* window, int x, int y)
|
||||||
|
Loading…
Reference in New Issue
Block a user