mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T391, style
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BlackInput
|
||||
}
|
||||
|
||||
// Set cooperative level
|
||||
if(!helperWindow) { return false; }
|
||||
if (!helperWindow) { return false; }
|
||||
if (FAILED(hr = m_directInputDevice->SetCooperativeLevel(helperWindow, DISCL_NONEXCLUSIVE | DISCL_BACKGROUND)))
|
||||
{
|
||||
CLogMessage(this).warning("IDirectInputDevice8::SetCooperativeLevel failed: ") << hr;
|
||||
@@ -236,11 +236,11 @@ namespace BlackInput
|
||||
|
||||
/* Create the window. */
|
||||
helperWindow = CreateWindowEx(0, helperWindowClassName,
|
||||
helperWindowName,
|
||||
WS_OVERLAPPED, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, HWND_MESSAGE, nullptr,
|
||||
hInstance, nullptr);
|
||||
helperWindowName,
|
||||
WS_OVERLAPPED, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, HWND_MESSAGE, nullptr,
|
||||
hInstance, nullptr);
|
||||
if (helperWindow == nullptr)
|
||||
{
|
||||
UnregisterClass(helperWindowClassName, hInstance);
|
||||
|
||||
Reference in New Issue
Block a user