// 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"
-
-// For the purposes of forcing this module to link
-extern char g_ArtProviderModule;
+#endif
// ===========================================================================
// implementation
void wxArtProviderCache::Clear()
{
- // Hack to make the default provider link
- // with the application
- g_ArtProviderModule = 0;
m_bitmapsHash.clear();
}
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;
}
}
bool OnInit()
{
wxArtProvider::InitStdProvider();
+ wxArtProvider::InitNativeProvider();
return TRUE;
}
void OnExit()