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);
}
// 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);