]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/image.cpp
More RTL work. Now transform m_updateRegion and
[wxWidgets.git] / src / common / image.cpp
index 0f42524c20327d4a0d4909d023c5d1c2e43d5081..f771aecf99231262a0e75a788d919d5324d61d3b 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
-    #include "wx/app.h"
     #include "wx/hash.h"
     #include "wx/utils.h"
-    #include "wx/bitmap.h"
     #include "wx/math.h"
     #include "wx/module.h"
+    #include "wx/palette.h"
+    #include "wx/intl.h"
 #endif
 
 #include "wx/filefn.h"
 #include "wx/wfstream.h"
-#include "wx/intl.h"
 
 #if wxUSE_XPM
     #include "wx/xpmdecod.h"
@@ -1000,8 +999,8 @@ void wxImage::SetRGB( const wxRect& rect_, unsigned char r, unsigned char g, uns
     }
     else
     {
-        wxCHECK_RET( imageRect.Inside(rect.GetTopLeft()) &&
-                     imageRect.Inside(rect.GetBottomRight()),
+        wxCHECK_RET( imageRect.Contains(rect.GetTopLeft()) &&
+                     imageRect.Contains(rect.GetBottomRight()),
                      wxT("invalid bounding rectangle") );
     }