Set wxALWAYS_NATIVE_DOUBLE_BUFFER to 1 to wxMSW too
Double buffering is always used in wxMSW after the last commit, so there is no need to implement double buffering in our own code there any more. This also means that only wxMotif and wxGTK1 don't have native double buffering now, so flip the direction of the check and test for them only (which will make removing support for them simpler).
This commit is contained in:
parent
cd15602378
commit
fcc7430610
1 changed files with 4 additions and 5 deletions
|
|
@ -15,12 +15,11 @@
|
|||
#include "wx/dcclient.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
// Split platforms into two groups - those which have well-working
|
||||
// double-buffering by default, and those which do not.
|
||||
#if defined(__WXMAC__) || defined(__WXGTK20__) || defined(__WXDFB__) || defined(__WXQT__)
|
||||
#define wxALWAYS_NATIVE_DOUBLE_BUFFER 1
|
||||
#else
|
||||
// Only deprecated wxGTK1 and wxMotif platforms don't use double buffering.
|
||||
#if defined(__WXMOTIF__) || (defined(__WXGTK__) && !defined(__WXGTK20__))
|
||||
#define wxALWAYS_NATIVE_DOUBLE_BUFFER 0
|
||||
#else
|
||||
#define wxALWAYS_NATIVE_DOUBLE_BUFFER 1
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue