Removed wxPG_DOUBLE_BUFFER constant. Now all wxPG rendering is done double-buffered, regardless of the platform. Code path with wxPG_DOUBLE_BUFFER = 0 did not render correctly (fixes #13140). In future should probably use wxAutoBufferedPaintDC or something similar, but this will require non-trivial code changes and testing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1795,9 +1795,7 @@ protected:
|
||||
wxWindow *m_wndEditor;
|
||||
wxWindow *m_wndEditor2;
|
||||
|
||||
#if wxPG_DOUBLE_BUFFER
|
||||
wxBitmap *m_doubleBuffer;
|
||||
#endif
|
||||
|
||||
/** Local time ms when control was created. */
|
||||
wxLongLong m_timeCreated;
|
||||
@@ -2687,7 +2685,6 @@ protected:
|
||||
#undef wxPG_FL_INITIALIZED
|
||||
#undef wxPG_FL_ACTIVATION_BY_CLICK
|
||||
#undef wxPG_SUPPORT_TOOLTIPS
|
||||
#undef wxPG_DOUBLE_BUFFER
|
||||
#undef wxPG_ICON_WIDTH
|
||||
#undef wxPG_USE_RENDERER_NATIVE
|
||||
// Following are needed by the manager headers
|
||||
|
@@ -43,9 +43,6 @@
|
||||
// 1 if wxRendererNative should be employed
|
||||
#define wxPG_USE_RENDERER_NATIVE 0
|
||||
|
||||
// 1 to use double-buffer that guarantees flicker-free painting
|
||||
#define wxPG_DOUBLE_BUFFER 1
|
||||
|
||||
// Enable tooltips
|
||||
#define wxPG_SUPPORT_TOOLTIPS 1
|
||||
|
||||
@@ -79,9 +76,6 @@
|
||||
// 1 if wxRendererNative should be employed
|
||||
#define wxPG_USE_RENDERER_NATIVE 1
|
||||
|
||||
// 1 to use double-buffer that guarantees flicker-free painting
|
||||
#define wxPG_DOUBLE_BUFFER 1
|
||||
|
||||
// Enable tooltips
|
||||
#define wxPG_SUPPORT_TOOLTIPS 1
|
||||
|
||||
@@ -113,9 +107,6 @@
|
||||
// 1 if wxRendererNative should be employed
|
||||
#define wxPG_USE_RENDERER_NATIVE 1
|
||||
|
||||
// 1 to use double-buffer that guarantees flicker-free painting
|
||||
#define wxPG_DOUBLE_BUFFER 0
|
||||
|
||||
// Enable tooltips
|
||||
#define wxPG_SUPPORT_TOOLTIPS 1
|
||||
|
||||
@@ -147,9 +138,6 @@
|
||||
// 1 if wxRendererNative should be employed
|
||||
#define wxPG_USE_RENDERER_NATIVE 0
|
||||
|
||||
// 1 to use double-buffer that guarantees flicker-free painting
|
||||
#define wxPG_DOUBLE_BUFFER 0
|
||||
|
||||
// Enable tooltips
|
||||
#define wxPG_SUPPORT_TOOLTIPS 0
|
||||
|
||||
@@ -192,8 +180,6 @@
|
||||
|
||||
#if defined(__WXWINCE__)
|
||||
#define wxPG_SMALL_SCREEN 1
|
||||
#undef wxPG_DOUBLE_BUFFER
|
||||
#define wxPG_DOUBLE_BUFFER 0
|
||||
#else
|
||||
#define wxPG_SMALL_SCREEN 0
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user