X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..924fe7dabe68c324b6e5005bbe1c4119447867f3:/src/common/artprov.cpp?ds=sidebyside diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index e4c829757b..a14428f89e 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -32,7 +32,9 @@ #include "wx/artprov.h" #include "wx/hashmap.h" #include "wx/module.h" +#if wxUSE_IMAGE #include "wx/image.h" +#endif // For the purposes of forcing this module to link extern char g_ArtProviderModule; @@ -173,6 +175,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; bmp = node->GetData()->CreateBitmap(id, client, size); if ( bmp.Ok() ) { +#if wxUSE_IMAGE if ( size != wxDefaultSize && (bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) ) { @@ -180,6 +183,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; img.Rescale(size.x, size.y); bmp = wxBitmap(img); } +#endif break; } }