]> git.saurik.com Git - wxWidgets.git/commitdiff
turning around defines, using a graphics context enables testing
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 12:21:59 +0000 (12:21 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 12:21:59 +0000 (12:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/drawing/drawing.cpp

index 76ca96d4d05a8716e5ca971886342f22f737ac41..3c210599474354b91eaaa5d3042269b5aafbfca9 100644 (file)
@@ -39,7 +39,8 @@
 #if wxTEST_GRAPHICS
 #include "wx/graphics.h"
 #if wxUSE_GRAPHICS_CONTEXT == 0
-#error wxUSE_GRAPHICS_CONTEXT must be defined to 1 for testing
+#undef wxTEST_GRAPHICS
+#define wxTEST_GRAPHICS 0
 #endif
 #else
 #undef wxUSE_GRAPHICS_CONTEXT