mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-05 20:48:46 +02:00
Examples: Fixed Clang warnings in DirectX examples
This commit is contained in:
@ -171,11 +171,11 @@ LRESULT ImGui_ImplDX11_WndProcHandler(HWND, UINT msg, WPARAM wParam, LPARAM lPar
|
|||||||
io.MousePos.y = (signed short)(lParam >> 16);
|
io.MousePos.y = (signed short)(lParam >> 16);
|
||||||
return true;
|
return true;
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
if (wParam >= 0 && wParam < 256)
|
if (wParam < 256)
|
||||||
io.KeysDown[wParam] = 1;
|
io.KeysDown[wParam] = 1;
|
||||||
return true;
|
return true;
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
if (wParam >= 0 && wParam < 256)
|
if (wParam < 256)
|
||||||
io.KeysDown[wParam] = 0;
|
io.KeysDown[wParam] = 0;
|
||||||
return true;
|
return true;
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
|
@ -135,11 +135,11 @@ LRESULT ImGui_ImplDX9_WndProcHandler(HWND, UINT msg, WPARAM wParam, LPARAM lPara
|
|||||||
io.MousePos.y = (signed short)(lParam >> 16);
|
io.MousePos.y = (signed short)(lParam >> 16);
|
||||||
return true;
|
return true;
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
if (wParam >= 0 && wParam < 256)
|
if (wParam < 256)
|
||||||
io.KeysDown[wParam] = 1;
|
io.KeysDown[wParam] = 1;
|
||||||
return true;
|
return true;
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
if (wParam >= 0 && wParam < 256)
|
if (wParam < 256)
|
||||||
io.KeysDown[wParam] = 0;
|
io.KeysDown[wParam] = 0;
|
||||||
return true;
|
return true;
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
|
Reference in New Issue
Block a user