From b46076458c66ebd3e0de6f7ec9bd27b4db33586e Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 13 Feb 2019 18:29:49 +0100 Subject: [PATCH] Examples: Win32: Removed unused code left-over from merge e9c625a1dc91818385aea650716200e6119fa5f6 --- examples/imgui_impl_win32.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/imgui_impl_win32.cpp b/examples/imgui_impl_win32.cpp index f34d8405..d9c43676 100644 --- a/examples/imgui_impl_win32.cpp +++ b/examples/imgui_impl_win32.cpp @@ -197,14 +197,6 @@ static void ImGui_ImplWin32_UpdateMousePos() if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)hovered_hwnd)) if ((viewport->Flags & ImGuiViewportFlags_NoInputs) == 0) // FIXME: We still get our NoInputs window with WM_NCHITTEST/HTTRANSPARENT code when decorated? io.MouseHoveredViewport = viewport->ID; - -#if 0 - POINT pos; - if (HWND active_window = ::GetForegroundWindow()) - if (active_window == g_hWnd || ::IsChild(active_window, g_hWnd)) - if (::GetCursorPos(&pos) && ::ScreenToClient(g_hWnd, &pos)) - io.MousePos = ImVec2((float)pos.x, (float)pos.y); -#endif } #ifdef _MSC_VER