-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I know pngwriter is not in the debian repo any more.

Anways, since this bug was still open and I forked a version of the
latest (2009) pngwriter package on
  https://github.com/ax3l/pngwriter

I would like to share the bug fix.

Patch:

diff --git a/src/pngwriter.cc b/src/pngwriter.cc
index d8d81c9..cd99f1f 100644
- --- a/src/pngwriter.cc
+++ b/src/pngwriter.cc
@@ -4334,7 +4334,7 @@ void pngwriter::drawtop(long x1,long y1,long
x2,long y2,long x3, int red, int gr
    long cl=((x2-x1)*256)/(y2-y1);
    long cr=((x3-x1)*256)/(y2-y1);

- -   for(int y=y1; y<y2; y++)
+   for(int y=y1; y<=y2; y++)
      {
        this->line(posl/256, y, posr/256, y, red, green, blue);
        posl+=cl;
@@ -4361,7 +4361,7 @@ void pngwriter::drawbottom(long x1,long y1,long
x2,long x3,long y3, int red, int
    long cl=((x3-x1)*256)/(y3-y1);
    long cr=((x3-x2)*256)/(y3-y1);

- -   for(int y=y1; y<y3; y++)
+   for(int y=y1; y<=y3; y++)
      {
        this->line(posl/256, y, posr/256, y, red, green, blue);

Link:

https://github.com/ax3l/pngwriter/commit/83cf8e92e9f1ab9823d568e55b0dd3cdd4142565

I could not reach the original developer last year, so I am not sure
he/she is still active.
  http://pngwriter.sourceforge.net/

Some other minor fixes in my repo are documented here:
  https://github.com/ax3l/pngwriter#changes


Best,
Axel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQJ8BAEBCgBmBQJSz+C4XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMjAzN0EzNzlGM0JGMzFGQ0VFOTJDNENE
RDNGNjFFNUYxMTMyRjY1AAoJEN0/YeXxEy9ltRAP/1uyJXwWrJlSAzur2u5100IF
oWIEZrwIP5nC5c59glQibqur3xpsNSA88T6y/YKjioUAw3oV03wI3SbWVT3hnAQO
4NcXw3Ru40uo2aasSzBgBWfTyXTVs+6666lshH5wi51i/rw/7B6kAuz9xZ6RNRwA
x6rLLSYOwpRuRn1Sv7dr12XyaQn1Yy0DlbbYjmxwgNyUAsx3qK7EwwMInccji3rC
6DobvUmHOrxQa/RqVe+isk/hr1OWYXoF1ayhigFgIMWNHHi5rKr2PPNZwHxrcc+L
CuT7/0gjPPRGffhSd0HZ6b9sY9o8L7p8Q4puL+jmw3uWha8D1h8OLr4paFUP2oY5
N5TicKoIX7RFjldQ4R0QAfvlmKZq7+jdANrNVEBR/JdTOBSOYo7IT8gpAEttbR0C
5TwewfB23fqHqo71zVvZvucdxe6jVWdZf537bp3nmcnB739+Brdwpk71WBIyv4Y9
uHoGNi3BjoE6htqzQ+aC6ROVqqQ86C20V/WXdnBl7qNvwhCB+Px50BFUFxDLoPTl
+dEulN9Did7urBBoeXiU1kmJihR3FDwQjMcuxJB6iVdYKfqyE2Zcu4giggqKT0pm
iwLFiSBmLXCMVG8XKz3VmHJs1yKokz7LejrPgZImKyjPzLycW9jX/TquwPVx/jzx
577zpEOuNNaDnW7sJraR
=yY+n
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to