#include "wx/log.h"
#include "wx/math.h"
#include "wx/image.h"
+ #include "wx/wxcrtvararg.h"
#endif
#include "wx/html/forcelnk.h"
#endif // wxUSE_GIF && wxUSE_TIMER
{
wxImage image(*s, wxBITMAP_TYPE_ANY);
- if ( image.Ok() )
+ if ( image.IsOk() )
SetImage(image);
}
}
void wxHtmlImageCell::SetImage(const wxImage& img)
{
#if !defined(__WXMSW__) || wxUSE_WXDIB
- if ( img.Ok() )
+ if ( img.IsOk() )
{
delete m_bitmap;
if (!m_bmpHpresent && m_bitmap != NULL)
m_Height = m_bitmap->GetHeight()*m_Width/m_bitmap->GetWidth();
else
- m_Height = m_scale*m_bmpH;
+ m_Height = static_cast<int>(m_scale*m_bmpH);
} else
{
- m_Width = m_scale*m_bmpW;
- m_Height = m_scale*m_bmpH;
+ m_Width = static_cast<int>(m_scale*m_bmpW);
+ m_Height = static_cast<int>(m_scale*m_bmpH);
}
switch (m_align)