diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp index 50959c91..86ae13a5 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -347,6 +347,8 @@ namespace cru Point Window::GetMousePosition() { + if (!IsWindowValid()) + return Point::Zero(); POINT point; ::GetCursorPos(&point); ::ScreenToClient(hwnd_, &point); |