]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp.in
simplify code to return from the end of the function
[wxWidgets.git] / src / stc / stc.cpp.in
index d63a1f9fc428c0a9ba69b1209085a2accfe2d3ce..eec517db9fff3cd9de2b3efec9028119618d047a 100644 (file)
     #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());
 }