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:
parent
e152ed15ca
commit
e5f4aeb634
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user