X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edef87c8274bd4cadcccc4ff107aeb1815e48460..48a1108eb87970373e1b1d5debeeaedd8d1916ea:/src/common/artprov.cpp diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 817d5e08db..5d3ab8655e 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: artprov.cpp +// Name: src/common/artprov.cpp // Purpose: wxArtProvider class // Author: Vaclav Slavik // Modified by: @@ -21,15 +21,16 @@ #endif #ifndef WX_PRECOMP - #include "wx/log.h" #include "wx/list.h" + #include "wx/log.h" #endif #include "wx/artprov.h" #include "wx/hashmap.h" #include "wx/module.h" + #if wxUSE_IMAGE -#include "wx/image.h" + #include "wx/image.h" #endif // =========================================================================== @@ -44,7 +45,7 @@ WX_DEFINE_LIST(wxArtProvidersList) // Cache class - stores already requested bitmaps // ---------------------------------------------------------------------------- -WX_DECLARE_EXPORTED_STRING_HASH_MAP(wxBitmap, wxArtProviderBitmapsHash) +WX_DECLARE_EXPORTED_STRING_HASH_MAP(wxBitmap, wxArtProviderBitmapsHash); class WXDLLEXPORT wxArtProviderCache { @@ -165,7 +166,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) ) { @@ -240,7 +241,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL; else if (client == wxART_BUTTON) return wxSize(16, 15); else // wxART_OTHER or perhaps a user's client, no specified size - return wxDefaultSize; + return wxDefaultSize; #endif // GTK+ 2/else }