Revision: 3784
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3784&view=rev
Author:   mdboom
Date:     2007-09-05 07:03:09 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
Fix over-allocation of alpha-channel buffer.  (Reduces memory usage
with Agg by ~25%

Modified Paths:
--------------
    trunk/matplotlib/src/_backend_agg.cpp

Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp       2007-09-05 14:02:22 UTC (rev 
3783)
+++ trunk/matplotlib/src/_backend_agg.cpp       2007-09-05 14:03:09 UTC (rev 
3784)
@@ -247,7 +247,7 @@
   renderingBuffer = new agg::rendering_buffer;
   renderingBuffer->attach(pixBuffer, width, height, stride);
   
-  alphaBuffer = new agg::int8u[NUMBYTES];
+  alphaBuffer = new agg::int8u[width*height];
   alphaMaskRenderingBuffer = new agg::rendering_buffer;
   alphaMaskRenderingBuffer->attach(alphaBuffer, width, height, stride);
   alphaMask = new alpha_mask_type(*alphaMaskRenderingBuffer);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to