From 5cd80a8dce1c7f35546567b0e2af6bed3e1116d8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 20 Dec 2001 22:44:04 +0000 Subject: Patch from stephan to avoid setting cursor to the same value multiple times on GTK+ as it is retained by the window. Minor cleanups. --- win32/PlatWin.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win32') 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; } } -- cgit v1.2.3