if ( !m_image.Ok() )
{
- wxLogError("Can't load the test image, please copy it to the "
- "program directory");
+ wxLogError(wxT("Can't load the test image, please copy it to the ")
+ wxT("program directory"));
return FALSE;
}
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);