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.
This commit is contained in:
parent
836fe46441
commit
6b8552edbd
@ -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
|
Reference in New Issue
Block a user