X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3ee029e052f2b8b3ea36ca9afd94809834bb8cf..b16de7461ac6d97b0b04a5ce4e73447925e93416:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index fabec08d83..81f172cd71 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,12 +592,16 @@ void Window::SetCursor(Cursor curs) { #else wxCursor wc = wxCursor(cursorId) ; #endif - GETWIN(id)->SetCursor(wc); + if(curs != cursorLast) + { + GETWIN(id)->SetCursor(wc); + cursorLast = curs; + } } void Window::SetTitle(const char *s) { - GETWIN(id)->SetTitle(stc2wx(s)); + GETWIN(id)->SetLabel(stc2wx(s)); }