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
This commit is contained in:
Julian Smart
2005-03-29 18:45:18 +00:00
parent de085fccce
commit be108f9665
2 changed files with 4 additions and 0 deletions

View 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);
}