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:
Julian Smart
2004-02-08 11:59:34 +00:00
parent a20ad557cc
commit 5a332fb5e0
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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);