Ticket #12704 (closed defect: fixed)
Some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK.
| Reported by: | ruslanch | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.5 |
| Component: | wxStyledText | Version: | 2.9-svn |
| Keywords: | flickering | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
I have some flickering in wxStyledTextCtrl with syntax highlighting in wxGTK. To avoid this problem is enough to use wxBufferedPaintDC in wxPaintEvent handler:
void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) {
#ifdef __WXGTK__
wxBufferedPaintDC dc(this);
#else
wxPaintDC dc(this);
#endif
m_swx->DoPaint(&dc, GetUpdateRegion().GetBox());
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

