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