Applied patch [ 879998 ] Warning free animate contrib
ABX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,7 +214,7 @@ public:
|
|||||||
|
|
||||||
//// Operations
|
//// Operations
|
||||||
|
|
||||||
virtual bool LoadFile(const wxString& filename) { return FALSE; }
|
virtual bool LoadFile(const wxString& WXUNUSED(filename)) { return FALSE; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* wxGIFAnimation
|
/* wxGIFAnimation
|
||||||
|
@@ -109,7 +109,6 @@ bool wxAnimationPlayer::Build()
|
|||||||
int i;
|
int i;
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
wxBitmap* bitmap = NULL;
|
|
||||||
wxImage* image = GetFrame(i);
|
wxImage* image = GetFrame(i);
|
||||||
if (image)
|
if (image)
|
||||||
{
|
{
|
||||||
@@ -120,7 +119,7 @@ bool wxAnimationPlayer::Build()
|
|||||||
if (GetTransparentColour(transparentColour))
|
if (GetTransparentColour(transparentColour))
|
||||||
image->SetMaskColour(transparentColour.Red(), transparentColour.Green(), transparentColour.Blue());
|
image->SetMaskColour(transparentColour.Red(), transparentColour.Green(), transparentColour.Blue());
|
||||||
|
|
||||||
bitmap = new wxBitmap(* image);
|
wxBitmap* bitmap = new wxBitmap(* image);
|
||||||
delete image;
|
delete image;
|
||||||
if (bitmap)
|
if (bitmap)
|
||||||
m_frames.Append(bitmap);
|
m_frames.Append(bitmap);
|
||||||
|
Reference in New Issue
Block a user