From: <sm...@us...> - 2008-12-10 08:28:32
|
Revision: 9073 http://plplot.svn.sourceforge.net/plplot/?rev=9073&view=rev Author: smekal Date: 2008-12-10 08:28:28 +0000 (Wed, 10 Dec 2008) Log Message: ----------- plot buffer also handles "Clear Background" escape function. This should have no impact on drivers which don't support this escape function, since in that case a filled polygon with the background color will be drawn in the first place and this escape function never recorded by the buffer. Modified Paths: -------------- trunk/src/plbuf.c Modified: trunk/src/plbuf.c =================================================================== --- trunk/src/plbuf.c 2008-12-10 08:25:05 UTC (rev 9072) +++ trunk/src/plbuf.c 2008-12-10 08:28:28 UTC (rev 9073) @@ -315,10 +315,11 @@ * * Functions: * - * PLESC_FILL Fill polygon - * PLESC_SWIN Set plot window parameters - * PLESC_IMAGE Draw image - * PLESC_HAS_TEXT Draw PostScript text + * PLESC_FILL Fill polygon + * PLESC_SWIN Set plot window parameters + * PLESC_IMAGE Draw image + * PLESC_HAS_TEXT Draw PostScript text + * PLESC_CLEAR Clear Background \*--------------------------------------------------------------------------*/ void @@ -565,10 +566,11 @@ * * Functions: * - * PLESC_FILL Fill polygon - * PLESC_SWIN Set plot window parameters - * PLESC_IMAGE Draw image - * PLESC_HAS_TEXT Draw PostScript text + * PLESC_FILL Fill polygon + * PLESC_SWIN Set plot window parameters + * PLESC_IMAGE Draw image + * PLESC_HAS_TEXT Draw PostScript text + * PLESC_CLEAR Clear Background \*--------------------------------------------------------------------------*/ static void @@ -599,7 +601,10 @@ case PLESC_HAS_TEXT: rdbuf_text(pls); break; - } + case PLESC_CLEAR: + plP_esc(PLESC_CLEAR,NULL); + break; + } } /*--------------------------------------------------------------------------*\ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |