]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/renderer.cpp
checking that a wxWindow is of run-time type wxWindow is hopefully useless
[wxWidgets.git] / src / msw / renderer.cpp
index 9a6fb82c73da803cf7a06b729e969a8b93709044..e63c25ad8de706f76345fea4974aea83aa9b60ef 100644 (file)
@@ -33,8 +33,8 @@
 
 #include "wx/splitter.h"
 #include "wx/renderer.h"
-#include "wx/msw/uxtheme.h"
 #include "wx/msw/private.h"
+#include "wx/msw/uxtheme.h"
 
 // tmschema.h is in Win32 Platform SDK and might not be available with earlier
 // compilers
@@ -226,7 +226,7 @@ wxRendererMSW::DrawPushButton(wxWindow * WXUNUSED(win),
         wxDCPenChanger pen(dc, *wxBLACK_PEN);
         wxDCBrushChanger brush(dc, *wxTRANSPARENT_BRUSH);
         dc.DrawRectangle(rect);
-        rect.Inflate(1);
+        rect.Deflate(1);
     }
 
     RECT rc;