]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / stc / stc.cpp
index 1fa360de2d6af27e1f2f9533f12427b1cb0b9876..c9b08e945c094ba98dfdeabe393443815062bfad 100644 (file)
     #include "wx/ffile.h"
 #endif
 
     #include "wx/ffile.h"
 #endif
 
+#ifdef __WXGTK__
+    #include "wx/dcbuffer.h"
+#endif
+
 #include "ScintillaWX.h"
 
 //----------------------------------------------------------------------
 #include "ScintillaWX.h"
 
 //----------------------------------------------------------------------
@@ -4505,7 +4509,7 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() {
 }
 
 void wxStyledTextCtrl::AnnotationClearLine(int line) {
 }
 
 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)) {
 // Event handlers
 
 void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) {
+#ifdef __WXGTK__
+    wxBufferedPaintDC dc(this);
+#else
     wxPaintDC dc(this);
     wxPaintDC dc(this);
+#endif
     m_swx->DoPaint(&dc, GetUpdateRegion().GetBox());
 }
 
     m_swx->DoPaint(&dc, GetUpdateRegion().GetBox());
 }