aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-20 22:44:04 +0000
committernyamatongwe <devnull@localhost>2001-12-20 22:44:04 +0000
commit5cd80a8dce1c7f35546567b0e2af6bed3e1116d8 (patch)
tree93db982c27915669db06b442c2042f8e692103f2 /win32/PlatWin.cxx
parentd679ceff1769acfd5abffd4f2a43076bb68cc311 (diff)
downloadscintilla-mirror-5cd80a8dce1c7f35546567b0e2af6bed3e1116d8.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.cxx7
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;
}
}