X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3ee029e052f2b8b3ea36ca9afd94809834bb8cf..a4f4d548ce0d3533fe9e84d812643cc7c21dd580:/src/stc/PlatWX.cpp?ds=inline diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index fabec08d83..07566a8040 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -6,12 +6,12 @@ #include -#include -#include -#include -#include -#include -#include +#include "wx/wx.h" +#include "wx/encconv.h" +#include "wx/listctrl.h" +#include "wx/mstream.h" +#include "wx/image.h" +#include "wx/imaglist.h" #include "Platform.h" #include "PlatWX.h" @@ -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; + } }