colors

extract colors from pictures
git clone git://git.2f30.org/colors
Log | Files | Refs | README | LICENSE

commit 430bbaee2fd023d3453bf5898f1b35035b4e3f4c
parent a114b2a66fdb53c5b11213e3d49cf1faa52e784d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  5 Nov 2017 16:45:09 +0100

minor code-style

Diffstat:
Mpng.c | 2+-
Mtree.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/png.c b/png.c @@ -23,7 +23,7 @@ parseimg_png(FILE *fp, void (*fn)(int, int, int)) png_set_add_alpha(png_struct_p, 255, PNG_FILLER_AFTER); png_set_gray_to_rgb(png_struct_p); png_read_png(png_struct_p, png_info_p, PNG_TRANSFORM_STRIP_16 | - PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND , NULL); + PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND, NULL); png_get_IHDR(png_struct_p, png_info_p, &width, &height, &depth, &color, &interlace, NULL, NULL); png_row_p = png_get_rows(png_struct_p, png_info_p); diff --git a/tree.h b/tree.h @@ -83,7 +83,7 @@ struct { \ SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ (head)->sph_root = tmp; \ } while (0) - + #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ SPLAY_LEFT(tmp, field) = (head)->sph_root; \