瀏覽代碼

Merge pull request #19082 from guilhermefelipecgs/fix_cursor

Fix cursor not displaying arrow when transiting from mode captured to visible.
Max Hilbrunner 7 年之前
父節點
當前提交
3ac7f08b55
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      platform/windows/os_windows.cpp

+ 3 - 1
platform/windows/os_windows.cpp

@@ -777,7 +777,9 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 						SetCursor(NULL);
 						SetCursor(NULL);
 				} else {
 				} else {
 					if (hCursor != NULL) {
 					if (hCursor != NULL) {
-						SetCursor(hCursor);
+						CursorShape c = cursor_shape;
+						cursor_shape = CURSOR_MAX;
+						set_cursor_shape(c);
 						hCursor = NULL;
 						hCursor = NULL;
 					}
 					}
 				}
 				}