From 5e99793eca269084aa3082cbda54ebced7fdf802 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Aug 2005 16:33:18 +0000 Subject: [PATCH] fixed cursor flicker (patch 1254492 by Hans P. Palbol) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/stc/PlatWX.cpp | 6 +++++- src/stc/PlatWX.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index fabec08d83..06497eb0dd 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -592,7 +592,11 @@ void Window::SetCursor(Cursor curs) { #else wxCursor wc = wxCursor(cursorId) ; #endif - GETWIN(id)->SetCursor(wc); + if(curs != cursorLast) + { + GETWIN(id)->SetCursor(wc); + cursorLast = curs; + } } diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index fabec08d83..06497eb0dd 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -592,7 +592,11 @@ void Window::SetCursor(Cursor curs) { #else wxCursor wc = wxCursor(cursorId) ; #endif - GETWIN(id)->SetCursor(wc); + if(curs != cursorLast) + { + GETWIN(id)->SetCursor(wc); + cursorLast = curs; + } } -- 2.45.2