X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49bf4e3e689c2131994aa2aab3c9eca6255a46eb..2b199a38dccae76ad59f747dd7ef6fcfc680c089:/src/generic/imaglist.cpp diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index f1ab5376d5..3e3f71cd46 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -14,6 +14,8 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_IMAGLIST + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -117,7 +119,7 @@ const wxBitmap *wxGenericImageList::GetBitmapPtr( int index ) const } // Get the bitmap -wxBitmap wxImageList::GetBitmap(int index) const +wxBitmap wxGenericImageList::GetBitmap(int index) const { const wxBitmap* bmp = GetBitmapPtr(index); if (bmp) @@ -127,7 +129,7 @@ wxBitmap wxImageList::GetBitmap(int index) const } // Get the icon -wxIcon wxImageList::GetIcon(int index) const +wxIcon wxGenericImageList::GetIcon(int index) const { const wxBitmap* bmp = GetBitmapPtr(index); if (bmp) @@ -226,4 +228,5 @@ bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y, return true; } +#endif // wxUSE_IMAGLIST #endif // __WXPALMOS__