X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/532d575bd9baedbbf1c52907a66255975f527530..370efbe74165c03642ea7620d35d9e0be8572d74:/src/common/artstd.cpp diff --git a/src/common/artstd.cpp b/src/common/artstd.cpp index fbd908ecab..35f10467b9 100644 --- a/src/common/artstd.cpp +++ b/src/common/artstd.cpp @@ -20,12 +20,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP - #if WXWIN_COMPATIBILITY_2_2 - #include "wx/app.h" - #endif -#endif - #include "wx/artprov.h" #include "wx/image.h" @@ -229,7 +223,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, { wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id); -#if wxUSE_IMAGE +#if wxUSE_IMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB) if (bmp.Ok()) { // fit into transparent image with desired size hint from the client