diff options
| author | nyamatongwe <unknown> | 2001-12-20 22:44:04 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-12-20 22:44:04 +0000 |
| commit | 3a04bd6d2957f283e90d5add5d03fc1882726669 (patch) | |
| tree | 93db982c27915669db06b442c2042f8e692103f2 /win32/PlatWin.cxx | |
| parent | 2b672082c6806d274d11c27dd6f65ffee23d30a2 (diff) | |
| download | scintilla-mirror-3a04bd6d2957f283e90d5add5d03fc1882726669.tar.gz | |
Patch from stephan to avoid setting cursor to the same value multiple
times on GTK+ as it is retained by the window.
Minor cleanups.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index a5b632379..9befd3f78 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -723,9 +723,6 @@ void Window::SetCursor(Cursor curs) { case cursorText: ::SetCursor(::LoadCursor(NULL,IDC_IBEAM)); break; - case cursorArrow: - ::SetCursor(::LoadCursor(NULL,IDC_ARROW)); - break; case cursorUp: ::SetCursor(::LoadCursor(NULL,IDC_UPARROW)); break; @@ -748,6 +745,10 @@ void Window::SetCursor(Cursor curs) { ::SetCursor(::LoadCursor(hinstPlatformRes, MAKEINTRESOURCE(IDC_MARGIN))); } break; + case cursorArrow: + case cursorInvalid: // Should not occur, but just in case. + ::SetCursor(::LoadCursor(NULL,IDC_ARROW)); + break; } } |
