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

Log Message:
-----------
Add a helpful comment.

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

Modified: trunk/matplotlib/src/ft2font.cpp
===================================================================
--- trunk/matplotlib/src/ft2font.cpp    2007-09-05 13:28:37 UTC (rev 3782)
+++ trunk/matplotlib/src/ft2font.cpp    2007-09-05 14:02:22 UTC (rev 3783)
@@ -243,7 +243,10 @@
   _VERBOSE("FT2Image::as_str");
   args.verify_length(0);
 
-  return Py::asObject(PyString_FromStringAndSize((const char *)_buffer, 
_width*_height));
+  return Py::asObject
+    (PyString_FromStringAndSize((const char *)_buffer, 
+                               _width*_height)
+     );
 }
 
 void FT2Image::makeRgbCopy() {
@@ -298,6 +301,8 @@
   unsigned char *dst           = _rgbaCopy->_buffer;
 
   while (src != src_end) {
+    // We know the array has already been zero'ed out in
+    // the resize method, so we just skip over the r, g and b.
     dst += 3;
     *dst++ = *src++;
   }


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