X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b9003ae3213f487fa3be74804b426a8ad0db323..7c808858c9141174809b3a8167c7cd21f184dc4c:/src/generic/imaglist.cpp diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 70e0ee492e..2cc89ab085 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -20,9 +20,12 @@ #include "wx/generic/imaglist.h" -#include "wx/icon.h" +#ifndef WX_PRECOMP + #include "wx/dc.h" + #include "wx/icon.h" +#endif + #include "wx/image.h" -#include "wx/dc.h" //----------------------------------------------------------------------------- // wxImageList @@ -217,7 +220,7 @@ bool wxGenericImageList::Replace( int index, const wxBitmap &bitmap, const wxBit m_images.Erase( node ); m_images.Insert( next, newBitmap ); } - + if (mask.Ok()) newBitmap->SetMask(new wxMask(mask)); @@ -277,5 +280,6 @@ bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y, return true; } -#endif // wxUSE_IMAGLIST #endif // __WXPALMOS__ + +#endif // wxUSE_IMAGLIST