// headers
// ---------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "artprov.h"
#endif
#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;
/*static*/ void wxArtProvider::CleanUpProviders()
{
+ WX_CLEAR_LIST(wxArtProvidersList, *sm_providers);
wxDELETE(sm_providers);
wxDELETE(sm_cache);
}
bmp = node->GetData()->CreateBitmap(id, client, size);
if ( bmp.Ok() )
{
+#if wxUSE_IMAGE
if ( size != wxDefaultSize &&
(bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) )
{
img.Rescale(size.x, size.y);
bmp = wxBitmap(img);
}
+#endif
break;
}
}