X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbfb8bcc3fa17e079d4219655b173f8ed2ccc65a..cf9b63b38a7ed96d8a824256f1fb23565c0fb52a:/src/common/fs_mem.cpp diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 5c983a1def..7475dfd1e9 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -227,8 +227,10 @@ wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type) { +#if !defined(__WXMSW__) || wxUSE_WXDIB wxImage img = bitmap.ConvertToImage(); AddFile(filename, img, type); +#endif } #endif // wxUSE_IMAGE