@@ -421,7 +421,8 @@ RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi,
421
421
rendererAA(),
422
422
rendererBin(),
423
423
theRasterizer(),
424
- debug(debug)
424
+ debug(debug),
425
+ _fill_color(agg::rgba(1 , 1 , 1 , 0 ))
425
426
{
426
427
_VERBOSE (" RendererAgg::RendererAgg" );
427
428
unsigned stride (width*4 );
@@ -430,7 +431,7 @@ RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi,
430
431
renderingBuffer.attach (pixBuffer, width, height, stride);
431
432
pixFmt.attach (renderingBuffer);
432
433
rendererBase.attach (pixFmt);
433
- rendererBase.clear (agg::rgba ( 0 , 0 , 0 , 0 ) );
434
+ rendererBase.clear (_fill_color );
434
435
rendererAA.attach (rendererBase);
435
436
rendererBin.attach (rendererBase);
436
437
hatchRenderingBuffer.attach (hatchBuffer, HATCH_SIZE, HATCH_SIZE,
@@ -1287,7 +1288,7 @@ void RendererAgg::_draw_path(path_t& path, bool has_clippath,
1287
1288
pixfmt hatch_img_pixf (hatchRenderingBuffer);
1288
1289
renderer_base rb (hatch_img_pixf);
1289
1290
renderer_aa rs (rb);
1290
- rb.clear (agg::rgba ( 0.0 , 0.0 , 0.0 , 0.0 ) );
1291
+ rb.clear (_fill_color );
1291
1292
rs.color (gc.color );
1292
1293
1293
1294
try {
@@ -2425,7 +2426,7 @@ RendererAgg::clear(const Py::Tuple& args)
2425
2426
_VERBOSE (" RendererAgg::clear" );
2426
2427
2427
2428
args.verify_length (0 );
2428
- rendererBase.clear (agg::rgba ( 0 , 0 , 0 , 0 ) );
2429
+ rendererBase.clear (_fill_color );
2429
2430
2430
2431
return Py::Object ();
2431
2432
}
0 commit comments