]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/effects.cpp
Add some asserts to ensure cols and rows are >= 0 to avoid crashes
[wxWidgets.git] / src / common / effects.cpp
index e1d93d144d73fcf4853f2813aca510343be30334..fe7a35e25ef6977db10eb5847e2af054be146925 100644 (file)
@@ -25,6 +25,8 @@
     #include "wx/gdicmn.h"
 #endif //WX_PRECOMP
 
+#if WXWIN_COMPATIBILITY_2_8
+
 /*
  * wxEffectsImpl: various 3D effects
  */
@@ -122,3 +124,6 @@ bool wxEffectsImpl::TileBitmap(const wxRect& rect, wxDC& dc, const wxBitmap& bit
 
     return true;
 }
+
+#endif // WXWIN_COMPATIBILITY_2_8
+