#include "wx/ffile.h"
#endif
+#ifdef __WXGTK__
+ #include "wx/dcbuffer.h"
+#endif
+
#include "ScintillaWX.h"
//----------------------------------------------------------------------
}
void wxStyledTextCtrl::AnnotationClearLine(int line) {
- SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL);
+ SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL);
}
// Event handlers
void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) {
+#ifdef __WXGTK__
+ wxBufferedPaintDC dc(this);
+#else
wxPaintDC dc(this);
+#endif
m_swx->DoPaint(&dc, GetUpdateRegion().GetBox());
}