]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp.in
Hack to make wxStaticBox be repainted when inside a scrolling window
[wxWidgets.git] / src / stc / stc.cpp.in
index a21f6812528d891858372fd2661b410ebb7a3a39..e07f6d5194c21915b2129ced8a8c2d5c4bf5b32c 100644 (file)
@@ -17,8 +17,8 @@
 
 #include <ctype.h>
 
-#include "wx/stc/stc.h"
-#include "ScintillaWX.h"
+#define Point macPoint  // These names are also defined by some mac headers so
+#define Style macStyle  // change their names, and then undef before we need them
 
 #include <wx/wx.h>
 #include <wx/tokenzr.h>
 #include <wx/image.h>
 #include <wx/file.h>
 
+#undef Point
+#undef Style
+
+#include "wx/stc/stc.h"
+#include "ScintillaWX.h"
 
 //----------------------------------------------------------------------
 
@@ -179,6 +184,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
 #endif
 
     SetBestFittingSize(size);
+
+    // Reduces flicker on GTK+/X11
+    SetBackgroundStyle(wxBG_STYLE_CUSTOM);
 }