use mask for GIFs (part of patch 649438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -500,7 +500,8 @@ void wxHtmlImageCell::AdvanceAnimation(wxTimer *timer)
|
|||||||
wxBitmap bmp(img);
|
wxBitmap bmp(img);
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SelectObject(*m_bitmap);
|
dc.SelectObject(*m_bitmap);
|
||||||
dc.DrawBitmap(bmp, m_gifDecoder->GetLeft(), m_gifDecoder->GetTop());
|
dc.DrawBitmap(bmp, m_gifDecoder->GetLeft(), m_gifDecoder->GetTop(),
|
||||||
|
TRUE /* use mask */);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SetImage(img);
|
SetImage(img);
|
||||||
|
Reference in New Issue
Block a user