Win32: Fix C99isms not supported by VS2010 (fixup)

This commit is contained in:
Camilla Löwy 2021-08-30 22:13:38 +02:00
parent be5e8fa3cf
commit 2ea932280d
2 changed files with 6 additions and 2 deletions

View File

@ -120,9 +120,11 @@ GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
{
if (!monitor->null.ramp.size)
{
unsigned int i;
_glfwAllocGammaArrays(&monitor->null.ramp, 256);
for (unsigned int i = 0; i < monitor->null.ramp.size; i++)
for (i = 0; i < monitor->null.ramp.size; i++)
{
const float gamma = 2.2f;
float value;

View File

@ -426,13 +426,15 @@ void _glfwHideWindowNull(_GLFWwindow* window)
void _glfwFocusWindowNull(_GLFWwindow* window)
{
_GLFWwindow* previous;
if (_glfw.null.focusedWindow == window)
return;
if (!window->null.visible)
return;
_GLFWwindow* previous = _glfw.null.focusedWindow;
previous = _glfw.null.focusedWindow;
_glfw.null.focusedWindow = window;
if (previous)