about summary refs log tree commit diff
path: root/lib/libppmd.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-05-24 20:34:34 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-05-24 20:34:34 +0000
commitcabbbb7e08a42253d01dc50ba5dd923b1fed5b53 (patch)
tree6c0def80201416dc4021006e8b2b8053b88d56a2 /lib/libppmd.c
parenta69b513e89e30be74e672a6e1cfa06b05dbb32c4 (diff)
downloadnetpbm-mirror-cabbbb7e08a42253d01dc50ba5dd923b1fed5b53.tar.gz
netpbm-mirror-cabbbb7e08a42253d01dc50ba5dd923b1fed5b53.tar.xz
netpbm-mirror-cabbbb7e08a42253d01dc50ba5dd923b1fed5b53.zip
Release 10.42.04
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@632 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libppmd.c')
-rw-r--r--lib/libppmd.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/libppmd.c b/lib/libppmd.c
index a6ff0059..e7be29b9 100644
--- a/lib/libppmd.c
+++ b/lib/libppmd.c
@@ -114,7 +114,7 @@ ppmd_filledrectangle(pixel **      const pixels,
 
     /* Draw. */
     for (row = cy; row < cy + cheight; ++row) {
-        unsigned int col;
+        int col;
         for (col = cx; col < cx + cwidth; ++col)
             drawPoint(drawProc, clientdata,
                       pixels, cols, rows, maxval, col, row);
@@ -676,6 +676,22 @@ ppmd_fill_create(void) {
 
 
 
+char *
+ppmd_fill_init(void) {
+/*----------------------------------------------------------------------------
+   Backward compatibility interface.  This is what was used before
+   ppmd_fill_create() existed.
+
+   Note that old programs treat a fill handle as a pointer to char
+   rather than a pointer to fillObj, and backward compatibility
+   depends upon the fact that these are implemented as identical types
+   (an address).
+-----------------------------------------------------------------------------*/
+    return (char *)ppmd_fill_create();
+}
+
+
+
 void
 ppmd_fill_destroy(struct fillobj * fillObjP) {