X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e53a95bcb122a06a74e116aba717b0d7a5bdc1b8..ede3a6d68af66772b4f5f94208b4126bab566cc8:/src/common/artstd.cpp diff --git a/src/common/artstd.cpp b/src/common/artstd.cpp index a96e970d22..dd3f13c1a6 100644 --- a/src/common/artstd.cpp +++ b/src/common/artstd.cpp @@ -201,6 +201,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, { wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id); +#if wxUSE_IMAGE if (bmp.Ok()) { // fit into transparent image with desired size hint from the client @@ -219,9 +220,11 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, wxImage img = bmp.ConvertToImage(); img.Resize(bestSize, offset); bmp = wxBitmap(img); - } + } } - } + } } +#endif // wxUSE_IMAGE + return bmp; }