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:
Vadim Zeitlin 2022-10-06 02:20:27 +01:00
parent cd15602378
commit fcc7430610

View file

@ -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