X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c115835b39194fd6c6852c96f5a9cccd2cc9aaa..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/html/m_image.cpp diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 595ba007b6..9574b94d41 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -446,6 +446,7 @@ wxHtmlImageCell::wxHtmlImageCell(wxWindow *window, wxFSFile *input, void wxHtmlImageCell::SetImage(const wxImage& img) { +#if !defined(__WXMSW__) || wxUSE_WXDIB if ( img.Ok() ) { delete m_bitmap; @@ -471,6 +472,7 @@ void wxHtmlImageCell::SetImage(const wxImage& img) */ m_bitmap = new wxBitmap(img); } +#endif } #if wxUSE_GIF && wxUSE_TIMER @@ -497,6 +499,7 @@ void wxHtmlImageCell::AdvanceAnimation(wxTimer *timer) if ( m_window->GetClientRect().Intersects(rect) && m_gifDecoder->ConvertToImage(&img) ) { +#if !defined(__WXMSW__) || wxUSE_WXDIB if ( (int)m_gifDecoder->GetWidth() != m_Width || (int)m_gifDecoder->GetHeight() != m_Height || m_gifDecoder->GetLeft() != 0 || m_gifDecoder->GetTop() != 0 ) @@ -508,6 +511,7 @@ void wxHtmlImageCell::AdvanceAnimation(wxTimer *timer) true /* use mask */); } else +#endif SetImage(img); m_window->Refresh(img.HasMask(), &rect); }