#include "wx/hash.h"
#include "wx/wxcrtvararg.h"
#if wxUSE_GUI
- #include "wx/bitmap.h"
#include "wx/image.h"
#endif // wxUSE_GUI
#endif
/*static*/ void
wxMemoryFSHandler::AddFile(const wxString& filename,
const wxImage& image,
- long type)
+ wxBitmapType type)
{
if (!CheckHash(filename)) return;
wxMemoryOutputStream mems;
- if (image.Ok() && image.SaveFile(mems, (int)type))
+ if (image.Ok() && image.SaveFile(mems, type))
{
m_Hash->Put
(
/*static*/ void
wxMemoryFSHandler::AddFile(const wxString& filename,
const wxBitmap& bitmap,
- long type)
+ wxBitmapType type)
{
#if !defined(__WXMSW__) || wxUSE_WXDIB
wxImage img = bitmap.ConvertToImage();