X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7cfad3ad6bc8080b33a0878a14b1c02ca33fe3e..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/common/artstd.cpp diff --git a/src/common/artstd.cpp b/src/common/artstd.cpp index c12a849c9d..542247d4ae 100644 --- a/src/common/artstd.cpp +++ b/src/common/artstd.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#if wxUSE_ARTPROVIDER_STD + #ifndef WX_PRECOMP #include "wx/image.h" #endif @@ -205,7 +207,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id); #if wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB) - if (bmp.Ok()) + if (bmp.IsOk()) { // fit into transparent image with desired size hint from the client if (reqSize == wxDefaultSize) @@ -246,3 +248,5 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, return bmp; } + +#endif // wxUSE_ARTPROVIDER_STD