]> git.saurik.com Git - wxWidgets.git/commitdiff
Reduce flicker in some circumstances by setting custom bg style
authorJulian Smart <julian@anthemion.co.uk>
Tue, 29 Mar 2005 18:45:18 +0000 (18:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 29 Mar 2005 18:45:18 +0000 (18:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/stc.cpp
src/stc/stc.cpp

index ec1f9949d065b26d7f66d30f0f2146fb41908372..248ceb73e50c8fa4497fc5b7eaf555e91aa54a3f 100644 (file)
@@ -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);
 }
 
index ec1f9949d065b26d7f66d30f0f2146fb41908372..248ceb73e50c8fa4497fc5b7eaf555e91aa54a3f 100644 (file)
@@ -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);
 }