forked from TypesettingTools/Aegisub
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'workarounds' into feature
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/include/wx/dcbuffer.h b/include/wx/dcbuffer.h | ||
index b47045bca1..435a501546 100644 | ||
--- a/include/wx/dcbuffer.h | ||
+++ b/include/wx/dcbuffer.h | ||
@@ -15,8 +15,13 @@ | ||
#include "wx/dcclient.h" | ||
#include "wx/window.h" | ||
|
||
-// All current ports use double buffering. | ||
-#define wxALWAYS_NATIVE_DOUBLE_BUFFER 1 | ||
+// 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 | ||
+ #define wxALWAYS_NATIVE_DOUBLE_BUFFER 0 | ||
+#endif | ||
|
||
|
||
// ---------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters