From: Julian Smart Date: Tue, 29 Mar 2005 18:45:18 +0000 (+0000) Subject: Reduce flicker in some circumstances by setting custom bg style X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be108f9665882ee412f00635406e894a7aa385de Reduce flicker in some circumstances by setting custom bg style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index ec1f9949d0..248ceb73e5 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -178,6 +178,8 @@ void wxStyledTextCtrl::Create(wxWindow *parent, SetCodePage(wxSTC_CP_UTF8); #endif + // Reduces flicker on GTK+/X11 + SetBackgroundStyle(wxBG_STYLE_CUSTOM); SetBestFittingSize(size); } diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index ec1f9949d0..248ceb73e5 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -178,6 +178,8 @@ void wxStyledTextCtrl::Create(wxWindow *parent, SetCodePage(wxSTC_CP_UTF8); #endif + // Reduces flicker on GTK+/X11 + SetBackgroundStyle(wxBG_STYLE_CUSTOM); SetBestFittingSize(size); }