X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b14227e64cb91284cb47319824063bb37fda104..75a2645e11fe191cc812cd768b61322456b5f8b8:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index a21f681252..e07f6d5194 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -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); }