From: <ai...@us...> - 2009-04-23 20:37:11
|
Revision: 9835 http://plplot.svn.sourceforge.net/plplot/?rev=9835&view=rev Author: airwin Date: 2009-04-23 20:36:57 +0000 (Thu, 23 Apr 2009) Log Message: ----------- Fix text bug in extcairo device (thanks to Hezekiah M. Carty for this fix). Enable extcairo device by default. Modified Paths: -------------- trunk/cmake/modules/drivers-init.cmake trunk/drivers/cairo.c Modified: trunk/cmake/modules/drivers-init.cmake =================================================================== --- trunk/cmake/modules/drivers-init.cmake 2009-04-23 12:32:26 UTC (rev 9834) +++ trunk/cmake/modules/drivers-init.cmake 2009-04-23 20:36:57 UTC (rev 9835) @@ -75,7 +75,7 @@ # memcairo does not work so turn it off by default. # The remaining cairo devices work well so turn them on by default. "memcairo:cairo:OFF" -"extcairo:cairo:OFF" +"extcairo:cairo:ON" "pdfcairo:cairo:ON" "pngcairo:cairo:ON" "pscairo:cairo:ON" Modified: trunk/drivers/cairo.c =================================================================== --- trunk/drivers/cairo.c 2009-04-23 12:32:26 UTC (rev 9834) +++ trunk/drivers/cairo.c 2009-04-23 20:36:57 UTC (rev 9835) @@ -2026,12 +2026,6 @@ switch(op) { - case PLESC_FILL: /* filled polygon */ - filled_polygon(pls, pls->dev_x, pls->dev_y, pls->dev_npts); - break; - case PLESC_HAS_TEXT: /* render text */ - proc_str(pls, (EscText *) ptr); - break; case PLESC_DEVINIT: /* Set external context */ aStream->cairoContext = (cairo_t *)ptr; /* Set graphics aliasing */ @@ -2044,6 +2038,9 @@ Cairo does not provide a way to query the dimensions of a context? */ break; + default: /* Fall back on default Cairo actions */ + plD_esc_cairo(pls, op, ptr); + break; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |