Hi Ty, > Thanks for looking into it. I'm glad to hear that you are once again > working with a mac, they are great little computers. I'm rather > surprised > that no one in the mac community has expressed an interest in this yet > (wxwidget driver that is).
Obviously not, since I think I encountered this bug many months ago, but didn't have the time to fix it and was not motivated doing this on a *very* slow computer. > > I might seem alittle slow for saying this, but if the driver isn't > working > for the examples from plplot, do I have any chance of getting it to > work > with wxwidgets in xcode? Maybe, since it was a bug in the application created around the driver, which is not needed if you use the wxWidgets driver from within a wxWidgets application, but nevertheless it's already fixed in the svn repository. So, please try the latest svn version or make the corresponding changes to drivers/wxwidgets.cpp: Modified: trunk/drivers/wxwidgets.cpp =================================================================== --- trunk/drivers/wxwidgets.cpp 2008-01-23 10:59:02 UTC (rev 8164) +++ trunk/drivers/wxwidgets.cpp 2008-01-24 14:41:02 UTC (rev 8165) @@ -1883,14 +1883,18 @@ //printf( "Clipping region: x=%d, y=%d, width=%d, height=%d, counter= %d\n", vX, vY, vW, vH, counter++ ); if( m_dev->antialized ) { - wxMemoryDC MemoryDC; - wxBitmap bitmap( m_dev->m_buffer->GetSubImage(wxRect(vX, vY, vW, vH)), -1 ); - MemoryDC.SelectObject( bitmap ); - dc.Blit( vX, vY, vW, vH, &MemoryDC, 0, 0 ); - MemoryDC.SelectObject( wxNullBitmap ); + if( m_dev->m_buffer ) { + wxMemoryDC MemoryDC; + wxBitmap bitmap( m_dev->m_buffer->GetSubImage(wxRect(vX, vY, vW, vH)), -1 ); + MemoryDC.SelectObject( bitmap ); + dc.Blit( vX, vY, vW, vH, &MemoryDC, 0, 0 ); + MemoryDC.SelectObject( wxNullBitmap ); + } } - else - dc.Blit( vX, vY, vW, vH, m_dev->dc, vX, vY ); + else { + if( m_dev->dc ) + dc.Blit( vX, vY, vW, vH, m_dev->dc, vX, vY ); + } upd ++ ; } Most examples should work now. Best Regards, Werner -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: [EMAIL PROTECTED] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general