]> git.saurik.com Git - wxWidgets.git/commit - src/stc/stc.cpp
Use wxBufferedPaintDC for wxStyledTextCtrl drawing in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Nov 2012 00:33:44 +0000 (00:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Nov 2012 00:33:44 +0000 (00:33 +0000)
commit431aea0327720fc44a3ea81b97eda10a5736ae54
treeafb48deb9b1215ace765f42a2a6a6b730082d3ff
parent7df04680cbdafa88233c2b650c24d59fec9d458a
Use wxBufferedPaintDC for wxStyledTextCtrl drawing in wxGTK.

GTK+ doesn't seem to use double buffering for Scintilla window for some
reason, resulting in bad flicker when it's updated, e.g. when the user types
into it.

Force the use of double buffering at wxWidgets level by using
wxBufferedPaintDC for painting it. This may be inefficient if GTK+ does double
buffer it in some cases but at least it gets rid of the flicker.

Closes #12704, #14828.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/stc/stc.cpp
src/stc/stc.cpp.in