Fixed C2275 compiler error in fg_spaceball_mswin.c

- Known to only affect Visual Studio 2010. Visual Studio 2013 and up may have relaxed the error.

(cherry picked from commit 6b8552edbd)

(cherry picked from commit 6b8552edbd)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1779 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2015-12-14 16:22:44 +00:00
parent f812349a8f
commit 012736d296

View File

@ -64,6 +64,7 @@ void fgPlatformInitializeSpaceball(void)
}
hwnd = fgStructure.CurrentWindow->Window.Handle;
{
BOOL ok;
UINT cbSize = sizeof(__fgSpaceball);
__fgSpaceball.hwndTarget = hwnd;
@ -73,6 +74,7 @@ void fgPlatformInitializeSpaceball(void)
__fgSpaceball.hwndTarget = NULL;
sball_initialized = 0;
}
}
}
void fgPlatformSpaceballClose(void)
@ -138,7 +140,7 @@ void fgSpaceballHandleWinEvent(HWND hwnd, WPARAM wParam, LPARAM lParam)
res = GetRawInputDeviceInfo(pRawInput->header.hDevice, RIDI_DEVICEINFO, &sRidDeviceInfo, &size);
if (res == -1)
return;
{
SFG_Window* window = fgWindowByHandle(hwnd);
if ((window == NULL))
return;
@ -191,6 +193,7 @@ void fgSpaceballHandleWinEvent(HWND hwnd, WPARAM wParam, LPARAM lParam)
__fgSpaceKeystate = dwKeystate;
}
}
}
}
#endif