// Get the bitmap
wxBitmap wxImageList::GetBitmap(int index) const
{
+#if wxUSE_WXDIB
int bmp_width = 0, bmp_height = 0;
GetSize(index, bmp_width, bmp_height);
image = bitmap.ConvertToImage();
image.SetMaskColour(r, g, b);
bitmap = wxBitmap(image);
-
+#else
+ wxBitmap bitmap;
+#endif
return bitmap;
}