From e03198bb0f636a4f997883b498125dee30f570db Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 23 Oct 2017 09:08:12 +0200 Subject: [PATCH] Fixed compilation for #1375 + coding style fixes. --- examples/directx9_example/imgui_impl_dx9.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/directx9_example/imgui_impl_dx9.cpp b/examples/directx9_example/imgui_impl_dx9.cpp index d1062560..1d122adf 100644 --- a/examples/directx9_example/imgui_impl_dx9.cpp +++ b/examples/directx9_example/imgui_impl_dx9.cpp @@ -171,13 +171,13 @@ void ImGui_ImplDX9_RenderDrawLists(ImDrawData* draw_data) d3d9_state_block->Release(); } -IMGUI_API LRESULT ImGui_ImplDX9_WndProcHandler(HWND, UINT msg, WPARAM wParam, LPARAM lParam) +IMGUI_API LRESULT ImGui_ImplDX9_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { ImGuiIO& io = ImGui::GetIO(); switch (msg) { case WM_LBUTTONDOWN: - SetCapture( hWnd ); + SetCapture(hwnd); io.MouseDown[0] = true; return true; case WM_LBUTTONUP: @@ -185,7 +185,7 @@ IMGUI_API LRESULT ImGui_ImplDX9_WndProcHandler(HWND, UINT msg, WPARAM wParam, LP io.MouseDown[0] = false; return true; case WM_RBUTTONDOWN: - SetCapture( hWnd ); + SetCapture(hwnd); io.MouseDown[1] = true; return true; case WM_RBUTTONUP: @@ -193,7 +193,7 @@ IMGUI_API LRESULT ImGui_ImplDX9_WndProcHandler(HWND, UINT msg, WPARAM wParam, LP io.MouseDown[1] = false; return true; case WM_MBUTTONDOWN: - SetCapture( hWnd ); + SetCapture(hwnd); io.MouseDown[2] = true; return true; case WM_MBUTTONUP: