From be108f9665882ee412f00635406e894a7aa385de Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 29 Mar 2005 18:45:18 +0000 Subject: [PATCH] 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 --- contrib/src/stc/stc.cpp | 2 ++ src/stc/stc.cpp | 2 ++ 2 files changed, 4 insertions(+) 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); } -- 2.45.2