X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c822d4ca200bec478dd36d755054e02911d7900d..5d7792236f7e4fcbb94cdc2a5213e0c5788e8c28:/src/common/bmpbase.cpp diff --git a/src/common/bmpbase.cpp b/src/common/bmpbase.cpp index 88e77178e9..eebf56e5f9 100644 --- a/src/common/bmpbase.cpp +++ b/src/common/bmpbase.cpp @@ -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 @@ -155,7 +165,7 @@ wxBitmap::wxBitmap(const char* const* bits) *this = wxBitmap(image); #else - wxFAIL_MSG(_T("creating bitmaps from XPMs not supported")); + wxFAIL_MSG(wxT("creating bitmaps from XPMs not supported")); #endif // wxUSE_IMAGE && wxUSE_XPM } #endif // !(defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__))