Hi,
When compiling pv with wxwidgets 2.6.2, I get the following error:
frame.cc: In member function =91void MyFrame::LoadPictureData()=92:
frame.cc:929: error: =91class wxImage=92 has no member named =91ConvertTo=
Bitmap=92
Accroding to the manual wxImage::ConvertToBitmap is deprecated and=20
should be replaced by the wxBitmap constructor:=20
http://www.wxwindows.org/manuals/2.6.2/wx_wximage.html#wximageconverttobi=
tmap
The following patch makes pv compile using wxwidgets 2.6.2:
--- /home/gert/DVD_CVS/pv/src/frame.cc 2005-08-25 16:37:12.000000000 +020=
0
+++ pv/src/frame.cc 2005-11-29 23:00:02.000000000 +0100
@@ -926,7 +926,7 @@
// delete previous bitmap
delete m_bitmap;
}
- m_bitmap =3D new wxBitmap(image.ConvertToBitmap());
+ m_bitmap =3D new wxBitmap(image);
// set correct size of canvas
m_canvas->width =3D m_bitmap->GetWidth();
Gert
|