X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6aed765fc167c45ec1faffb29fd15a2548fde85..6f71e062428e8a74763eee7fb85d04ea24a70988:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 1fa360de2d..d4190e23fb 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -53,6 +53,10 @@ #include "wx/ffile.h" #endif +#ifdef __WXGTK__ + #include "wx/dcbuffer.h" +#endif + #include "ScintillaWX.h" //---------------------------------------------------------------------- @@ -4383,7 +4387,7 @@ void wxStyledTextCtrl::DoSetValue(const wxString& value, int flags) else SetText(value); - // We don't send wxEVT_COMMAND_TEXT_UPDATED anyhow, so ignore the + // We don't send wxEVT_TEXT anyhow, so ignore the // SetValue_SendEvent bit of the flags } @@ -4505,7 +4509,7 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() { } void wxStyledTextCtrl::AnnotationClearLine(int line) { - SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL); + SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL); } @@ -4612,7 +4616,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()); }