|
From: <sm...@us...> - 2008-12-10 08:25:15
|
Revision: 9072
http://plplot.svn.sourceforge.net/plplot/?rev=9072&view=rev
Author: smekal
Date: 2008-12-10 08:25:05 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
These changes fixes bugs regarding the AGG backend. wxPLplotDemo works also with the AGG backend now.
A problem which occured if the clear function was called by the plbuffer implementation was also fixed.
Modified Paths:
--------------
trunk/drivers/wxwidgets.cpp
trunk/drivers/wxwidgets_agg.cpp
Modified: trunk/drivers/wxwidgets.cpp
===================================================================
--- trunk/drivers/wxwidgets.cpp 2008-12-10 08:23:08 UTC (rev 9071)
+++ trunk/drivers/wxwidgets.cpp 2008-12-10 08:25:05 UTC (rev 9072)
@@ -680,11 +680,11 @@
case PLESC_CLEAR: {
/* Since the plot is updated only every MAX_COMCOUNT commands (usually 5000)
before we clear the screen we need to show the plot at least once :) */
- if( dev->ownGUI ) {
+ if( !(dev->resizing) && dev->ownGUI ) {
wxRunApp( pls, true );
dev->comcount=0;
}
- dev->ClearBackground( pls->cmap0[0].r, pls->cmap0[0].g, pls->cmap0[0].b,
+ dev->ClearBackground( pls->cmap0[0].r, pls->cmap0[0].g, pls->cmap0[0].b,
pls->sppxmi, pls->sppymi, pls->sppxma, pls->sppyma );
}
break;
Modified: trunk/drivers/wxwidgets_agg.cpp
===================================================================
--- trunk/drivers/wxwidgets_agg.cpp 2008-12-10 08:23:08 UTC (rev 9071)
+++ trunk/drivers/wxwidgets_agg.cpp 2008-12-10 08:25:05 UTC (rev 9072)
@@ -415,12 +415,9 @@
* Adds a dc to the device. In that case, the drivers doesn't provide
* a GUI. A new buffer (image) will be created and set up.
*--------------------------------------------------------------------------*/
-void wxPLDevAGG::SetExternalBuffer( void* dc )
+void wxPLDevAGG::SetExternalBuffer( void* image )
{
- mDC=(wxDC*)dc; /* Add the dc to the device */
- if( mBuffer )
- delete mBuffer;
- mBuffer = new wxImage( width, height );
+ mBuffer = (wxImage*)image; /* Add the image to the device */
mRenderingBuffer.attach( mBuffer->GetData(), width, height, width*3 );
mRendererBase.reset_clipping( true );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|