]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/animate/animate.cpp
missign app.h header
[wxWidgets.git] / contrib / src / animate / animate.cpp
index 6a17313299afc558784c355ac3aa234453d73f16..1b88fce47ee27a10eecb7c83c4b4f0aad8291263 100644 (file)
@@ -116,7 +116,7 @@ bool wxAnimationPlayer::Build()
                 if (GetTransparentColour(transparentColour))
                     image->SetMaskColour(transparentColour.Red(), transparentColour.Green(), transparentColour.Blue());
 
-                bitmap = new wxBitmap(image->ConvertToBitmap());
+                bitmap = new wxBitmap(* image);
                 delete image;
                 if (bitmap)
                     m_frames.Append(bitmap);
@@ -212,7 +212,7 @@ bool wxAnimationPlayer::GetTransparentColour(wxColour& col) const
 }
 
 // Play the frame
-bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, wxPoint& pos)
+bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, const wxPoint& pos)
 {
     wxMemoryDC dc;
     dc.SelectObject(m_backingStore);