Added hack to make standard art provider link with app

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-03-23 12:58:20 +00:00
parent e152ed15ca
commit e5f4aeb634
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,8 @@
#include "wx/hashmap.h"
#include "wx/module.h"
// For the purposes of forcing this module to link
extern char g_ArtProviderModule;
// ===========================================================================
// implementation
@ -81,6 +83,9 @@ bool wxArtProviderCache::GetBitmap(const wxString& full_id, wxBitmap* bmp)
void wxArtProviderCache::Clear()
{
// Hack to make the default provider link
// with the application
g_ArtProviderModule = 0;
m_bitmapsHash.clear();
}

View File

@ -23,6 +23,9 @@
#include "wx/artprov.h"
#include "wx/module.h"
// For the purposes of forcing this module to link
char g_ArtProviderModule = 0;
// ----------------------------------------------------------------------------
// wxDefaultArtProvider
// ----------------------------------------------------------------------------