diff options
author | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
commit | d24f17b88d901b779c81c7434995675eb2a17429 (patch) | |
tree | d8f4cfee93d70598ef4b1419316b30acfff0eb04 /Editor/GUI/WindowManager.cpp | |
parent | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (diff) |
- Internal::
Diffstat (limited to 'Editor/GUI/WindowManager.cpp')
-rw-r--r-- | Editor/GUI/WindowManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Editor/GUI/WindowManager.cpp b/Editor/GUI/WindowManager.cpp index d6d8b1e..5ba3086 100644 --- a/Editor/GUI/WindowManager.cpp +++ b/Editor/GUI/WindowManager.cpp @@ -1,5 +1,6 @@ #include "EditorWindows.h" #include "WinUtils.h" +#include "Runtime/Math/Math.h" std::vector<GUIWindow*> WindowManager::s_GUIWindows; @@ -8,12 +9,12 @@ GUIWindow* WindowManager::GetMouseOverWindow() return NULL; } -Internal::Vector2 WindowManager::GetMousePosition() +Vector2 WindowManager::GetMousePosition() { POINT pt; if (!GetCursorPos(&pt)) - return Internal::Vector2(0, 0); + return Vector2(0, 0); - return Internal::Vector2(pt.x, pt.y); + return Vector2(pt.x, pt.y); } |