X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49bf4e3e689c2131994aa2aab3c9eca6255a46eb..749da44287b95c70c2de60adfd8912bf24be60d9:/src/generic/imaglist.cpp?ds=sidebyside diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index f1ab5376d5..0e3d1c01bd 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -7,13 +7,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "imaglist.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_IMAGLIST + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -117,7 +115,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 +125,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 +224,5 @@ bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y, return true; } +#endif // wxUSE_IMAGLIST #endif // __WXPALMOS__