summaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-07 11:02:20 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-07 11:02:20 -0300
commitce328ce99b6dd41862dea3c95aa8621dc4b83d15 (patch)
tree82db35356f3a95f1f0522d0ff48919fa34024438 /platform/windows/os_windows.cpp
parent4b893ffeeb5582b861ef74c8ff320c4f30201c25 (diff)
parent3cfa9209825b1992f8958ecedf88ee1eec8c7fb0 (diff)
Merge pull request #5084 from J08nY/issue-5051
Windows: Hide mouse on MOUSE_MODE_CAPTURED
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 5e3dc438d0..9034541f37 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -708,7 +708,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) {
case WM_SETCURSOR: {
if(LOWORD(lParam) == HTCLIENT) {
- if(mouse_mode == MOUSE_MODE_HIDDEN) {
+ if(mouse_mode == MOUSE_MODE_HIDDEN || mouse_mode == MOUSE_MODE_CAPTURED) {
//Hide the cursor
if(hCursor == NULL)
hCursor = SetCursor(NULL);