X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6aed765fc167c45ec1faffb29fd15a2548fde85..88932ec82d048d006cdc81bd309f5e59aee799ac:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index d63a1f9fc4..eec517db9f 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -53,6 +53,10 @@ #include "wx/ffile.h" #endif +#ifdef __WXGTK__ + #include "wx/dcbuffer.h" +#endif + #include "ScintillaWX.h" //---------------------------------------------------------------------- @@ -750,7 +754,11 @@ void wxStyledTextCtrl::AppendTextRaw(const char* text, int length) // Event handlers void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) { +#ifdef __WXGTK__ + wxBufferedPaintDC dc(this); +#else wxPaintDC dc(this); +#endif m_swx->DoPaint(&dc, GetUpdateRegion().GetBox()); }