]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed cursor flicker (patch 1254492 by Hans P. Palbol)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 16:33:18 +0000 (16:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Aug 2005 16:33:18 +0000 (16:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/PlatWX.cpp
src/stc/PlatWX.cpp

index fabec08d8372982dbb9b63a4a8ef68739dfd0d29..06497eb0dde6872351a1746f93a14ffebb83d4ab 100644 (file)
@@ -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;
+       }
 }
 
 
index fabec08d8372982dbb9b63a4a8ef68739dfd0d29..06497eb0dde6872351a1746f93a14ffebb83d4ab 100644 (file)
@@ -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;
+       }
 }