From: Werner S. <sm...@us...> - 2007-03-03 10:26:27
|
Update of /cvsroot/plplot/plplot/bindings/wxwidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11849 Modified Files: wxPLplotstream.cpp Log Message: Fixed a compiling problem with the wxWidgets bindings for wxGTK 2.8.0. An API change of wxGTK forced us to do small modifications of the code. Code tested with wxGTK 2.8.0 and wxGTK 2.6.3. Index: wxPLplotstream.cpp =================================================================== RCS file: /cvsroot/plplot/plplot/bindings/wxwidgets/wxPLplotstream.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- wxPLplotstream.cpp 15 Feb 2007 19:59:55 -0000 1.5 +++ wxPLplotstream.cpp 3 Mar 2007 10:26:19 -0000 1.6 @@ -113,7 +113,8 @@ #ifdef WX_TEMP_HAVE_AGG_IS_ON if( m_style & wxPLPLOT_ANTIALIZED ) { wxMemoryDC MemoryDC; - MemoryDC.SelectObject( wxBitmap(m_image, -1) ); + wxBitmap bitmap( *m_image, -1 ); + MemoryDC.SelectObject( bitmap ); m_dc->Blit( 0, 0, m_width, m_height, &MemoryDC, 0, 0 ); MemoryDC.SelectObject( wxNullBitmap ); } @@ -129,7 +130,8 @@ #ifdef WX_TEMP_HAVE_AGG_IS_ON if( m_style & wxPLPLOT_ANTIALIZED ) { wxMemoryDC MemoryDC; - MemoryDC.SelectObject( wxBitmap(m_image, -1) ); + wxBitmap bitmap( *m_image, -1 ); + MemoryDC.SelectObject( bitmap ); m_dc->Blit( 0, 0, m_width, m_height, &MemoryDC, 0, 0 ); MemoryDC.SelectObject( wxNullBitmap ); } |