const wxImage& img = wxGetApp().GetImage();
wxImage img2 = img.Rotate(frame->m_angle, wxPoint(img.GetWidth()/2, img.GetHeight()/2), TRUE, &offset);
- wxBitmap bmp = img2.ConvertToBitmap ();
+ wxBitmap bmp(img2);
wxClientDC dc (this);
- dc.DrawBitmap (img2.ConvertToBitmap(), event.m_x + offset.x, event.m_y + offset.y, TRUE);
+ dc.DrawBitmap (bmp, event.m_x + offset.x, event.m_y + offset.y, TRUE);
}
// without interpolation, and without offset correction
const wxImage& img = wxGetApp().GetImage();
wxImage img2 = img.Rotate(frame->m_angle, wxPoint(img.GetWidth()/2, img.GetHeight()/2), FALSE);
- wxBitmap bmp = img2.ConvertToBitmap ();
+ wxBitmap bmp(img2);
wxClientDC dc (this);
dc.DrawBitmap (bmp, event.m_x, event.m_y, TRUE);