X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b89f0cb06a187c6fe7e75ab5aa359b019b8ff766..6ba338ecc3af0dcef0416e698d77af97b187a858:/contrib/src/stc/PlatWX.cpp?ds=sidebyside diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index 9f948cfb78..8edc3bf5e7 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -289,7 +289,7 @@ void SurfaceImpl::Init() { hdc = new wxMemoryDC(); hdcOwned = true; #else - // On Mac and GTK(?) the DC is not really valid until it has a bitmap + // On Mac and GTK the DC is not really valid until it has a bitmap // selected into it. So instead of just creating the DC with no bitmap, // go ahead and give it one. InitPixMap(1,1,NULL); @@ -632,8 +632,12 @@ void Window::SetCursor(Cursor curs) { cursorId = wxCURSOR_ARROW; break; } - - GETWIN(id)->SetCursor(wxCursor(cursorId)); +#ifdef __WXMOTIF__ + wxCursor wc = wxStockCursor(cursorId) ; +#else + wxCursor wc = wxCursor(cursorId) ; +#endif + GETWIN(id)->SetCursor(wc); } @@ -646,7 +650,7 @@ void Window::SetTitle(const char *s) { // Helper classes for ListBox -#if defined(__WXMAC__) +#if 1 // defined(__WXMAC__) class wxSTCListBoxWin : public wxListBox { public: wxSTCListBoxWin(wxWindow* parent, wxWindowID id)