summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-16 20:20:57 -0500
committerJune McEnroe <programble@gmail.com>2018-02-16 20:20:57 -0500
commit7aa7a5adb26ade88444fc8afaf16894f29e86f7d (patch)
treef5635bd6f78eaca6e598e21bb1c8b3f800e6ed48
parentRefactor scanlines and filter bytes, more glitch (diff)
downloadsrc-7aa7a5adb26ade88444fc8afaf16894f29e86f7d.tar.gz
src-7aa7a5adb26ade88444fc8afaf16894f29e86f7d.zip
Fix pngo glitch
Basically changing the filter type without actually recalculating the
bytes results in some interesting stuff.
Diffstat (limited to '')
-rw-r--r--bin/pngo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pngo.c b/bin/pngo.c
index 878b55a0..6dd88c87 100644
--- a/bin/pngo.c
+++ b/bin/pngo.c
@@ -309,7 +309,7 @@ static void filterData(struct Header header, const struct Scanline *lines) {
     for (uint32_t y = header.height - 1; y < header.height; --y) {
         // TODO: Filter type heuristic.
         *lines[y].type = FILT_PAETH;
-        for (uint32_t i = (bpp * header.width) - 1; i < bpp * header.width; ++i) {
+        for (uint32_t i = (bpp * header.width) - 1; i < bpp * header.width; --i) {
             lines[y].data[i] = filt(*lines[y].type, filterBytes(lines, bpp, y, i));
         }
     }
iff.sh?id=2d386e227e0b75474efcfe82e9fec7d0f21c6df4&follow=1'>t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld Otherwise we can't easily embed links to other /about/ pages. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2015-08-12filters: apply HTML escapingLazaros Koromilas http://www.w3.org/International/questions/qa-escapes#use 2015-08-12git: update to v2.5.0Christian Hesse Update to git version v2.5.0. * Upstream commit 5455ee0573a22bb793a7083d593ae1ace909cd4c (Merge branch 'bc/object-id') changed API: for_each_ref() callback functions were taught to name the objects not with "unsigned char sha1[20]" but with "struct object_id". * Upstream commit dcf692625ac569fefbe52269061230f4fde10e47 (path.c: make get_pathname() call sites return const char *) Signed-off-by: Christian Hesse <mail@eworm.de> 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt