X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b14227e64cb91284cb47319824063bb37fda104..8add533eb22ba0756f5b426f77ee593bc1aa6fcd:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index ec1f9949d0..892f639501 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -17,8 +17,8 @@ #include -#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 #include @@ -26,6 +26,11 @@ #include #include +#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); }