]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bmpbase.cpp
Fix calculation of the margins for owner-drawn menu items.
[wxWidgets.git] / src / common / bmpbase.cpp
index e80091dada39aff4f0887733d31510d4c6c4774b..eebf56e5f93bfac760cafd99f26033f82e7db3cb 100644 (file)
@@ -135,6 +135,16 @@ public:
     void OnExit() { wxBitmap::CleanUpHandlers(); }
 };
 
+wxBitmap wxBitmapBase::ConvertToDisabled(unsigned char brightness) const
+{
+    wxBitmap bmp;
+#if wxUSE_IMAGE
+    wxImage image = ConvertToImage();
+    bmp = wxBitmap(image.ConvertToDisabled(brightness));
+#endif
+    return bmp;
+}
+
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapBaseModule, wxModule)
 
 #endif // wxUSE_BITMAP_BASE