From: Werner S. <sm...@us...> - 2006-11-21 20:53:45
|
Update of /cvsroot/plplot/plplot/drivers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18305 Modified Files: wxwidgets.cpp Log Message: Lot of changes for wxWidgets driver: * device struct is now a class with constructor, cleaned up code * added a clipping region - only destroyed part of bitmap or part of bitmap which contains new stuff will be copied to the screen. (antialized) wxwidgets driver is now about 4 times faster * made changes to make the code compatible to new wxWidgets version 2.8 without breaking 2.6.3 combatibility * antialized driver part can now handle filled polygons * changed handling of scaling factors - there are now scaling factors for x and y (instead of only one) * antialized driver can now handle resizing properly * stroke width is at least 1 even if plplot library says 0 Index: wxwidgets.cpp =================================================================== RCS file: /cvsroot/plplot/plplot/drivers/wxwidgets.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- wxwidgets.cpp 17 Sep 2006 15:36:48 -0000 1.6 +++ wxwidgets.cpp 21 Nov 2006 20:53:32 -0000 1.7 @@ -25,8 +25,6 @@ /* TODO: *) x02c gives a lot of warnings regarding the color palette. same for gd driver though. Has to do with freetype support. - *) x14c is stopped by Visual C++ since it corrupts the stack - - but the same happens for wingcc driver. *) Do we exit gracefully? */ @@ -34,11 +32,11 @@ #ifdef PLD_wxwidgets [...1257 lines suppressed...] m_dev->m_bitmap = new wxBitmap( m_dev->bm_width, m_dev->bm_height, -1 ); - ((wxMemoryDC*)m_dev->dc)->SelectObject( *(m_dev->m_bitmap) ); // select new bitmap + ((wxMemoryDC*)m_dev->dc)->SelectObject( *(m_dev->m_bitmap) ); /* select new bitmap */ } } @@ -1517,11 +1621,12 @@ void wxPLplotWindow::OnMaximize( wxMaximizeEvent & WXUNUSED(event) ) { - Log_Verbose( "wxPLplotWindow::OnMax" ); + // Log_Verbose( "wxPLplotWindow::OnMax" ); wxSizeEvent event( GetClientSize() ); AddPendingEvent( event ); } + #else int pldummy_wxwidgets() { |