1 | diff -c wxWidgets-orig/src/stc/stc.cpp wxWidgets/src/stc/stc.cpp |
---|
2 | *** wxWidgets-orig/src/stc/stc.cpp 2010-11-23 00:30:41.979072192 +0300 |
---|
3 | --- wxWidgets/src/stc/stc.cpp 2010-11-23 00:32:22.982405524 +0300 |
---|
4 | *************** |
---|
5 | *** 48,53 **** |
---|
6 | --- 48,54 ---- |
---|
7 | #include "wx/mstream.h" |
---|
8 | #include "wx/image.h" |
---|
9 | #include "wx/ffile.h" |
---|
10 | + #include "wx/dcbuffer.h" |
---|
11 | |
---|
12 | #include "ScintillaWX.h" |
---|
13 | |
---|
14 | *************** |
---|
15 | *** 4189,4195 **** |
---|
16 | --- 4190,4200 ---- |
---|
17 | // Event handlers |
---|
18 | |
---|
19 | void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) { |
---|
20 | + #ifdef __WXGTK__ |
---|
21 | + wxBufferedPaintDC dc(this); |
---|
22 | + #else |
---|
23 | wxPaintDC dc(this); |
---|
24 | + #endif |
---|
25 | m_swx->DoPaint(&dc, GetUpdateRegion().GetBox()); |
---|
26 | } |
---|
27 | |
---|
28 | diff -c wxWidgets-orig/src/stc/stc.cpp.in wxWidgets/src/stc/stc.cpp.in |
---|
29 | *** wxWidgets-orig/src/stc/stc.cpp.in 2010-11-23 00:30:41.979072192 +0300 |
---|
30 | --- wxWidgets/src/stc/stc.cpp.in 2010-11-23 00:33:17.979072191 +0300 |
---|
31 | *************** |
---|
32 | *** 48,53 **** |
---|
33 | --- 48,54 ---- |
---|
34 | #include "wx/mstream.h" |
---|
35 | #include "wx/image.h" |
---|
36 | #include "wx/ffile.h" |
---|
37 | + #include "wx/dcbuffer.h" |
---|
38 | |
---|
39 | #include "ScintillaWX.h" |
---|
40 | |
---|
41 | *************** |
---|
42 | *** 689,695 **** |
---|
43 | --- 690,700 ---- |
---|
44 | // Event handlers |
---|
45 | |
---|
46 | void wxStyledTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(evt)) { |
---|
47 | + #ifdef __WXGTK__ |
---|
48 | + wxBufferedPaintDC dc(this); |
---|
49 | + #else |
---|
50 | wxPaintDC dc(this); |
---|
51 | + #endif |
---|
52 | m_swx->DoPaint(&dc, GetUpdateRegion().GetBox()); |
---|
53 | } |
---|
54 | |
---|