X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e53a95bcb122a06a74e116aba717b0d7a5bdc1b8..f20e3df6d3a2c69d2941dddd4e815d4ceea29abe:/src/common/artprov.cpp diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 4657066f99..2e8a1df31c 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -13,10 +13,6 @@ // headers // --------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "artprov.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -42,7 +38,7 @@ #include "wx/listimpl.cpp" WX_DECLARE_LIST(wxArtProvider, wxArtProvidersList); -WX_DEFINE_LIST(wxArtProvidersList); +WX_DEFINE_LIST(wxArtProvidersList) // ---------------------------------------------------------------------------- // Cache class - stores already requested bitmaps @@ -169,7 +165,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; bmp = node->GetData()->CreateBitmap(id, client, size); if ( bmp.Ok() ) { -#if wxUSE_IMAGE +#if wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB) if ( size != wxDefaultSize && (bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) ) { @@ -204,7 +200,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; } #if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__) - #include + #include "wx/gtk/private.h" extern GtkIconSize wxArtClientToIconSize(const wxArtClient& client); #endif // defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)