]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bmpbuttn.cpp
Do a little less anti-alias so it looks better on dark backgrounds
[wxWidgets.git] / src / msw / bmpbuttn.cpp
index e1be21611f2270c55b891b3106919f67fcb30a17..05d6d3807aaf9c73ccd8419d1c57e45f1e39432a 100644 (file)
@@ -494,8 +494,10 @@ wxSize wxBitmapButton::DoGetBestSize() const
 {
     if ( m_bmpNormal.Ok() )
     {
-        return wxSize(m_bmpNormal.GetWidth() + 2*m_marginX,
+        wxSize best(m_bmpNormal.GetWidth() + 2*m_marginX,
                       m_bmpNormal.GetHeight() + 2*m_marginY);
+        CacheBestSize(best);
+        return best;
     }
 
     // no idea what our best size should be, defer to the base class