From 046d4a9d5d5fa65acfb9dbf9f8a8f71b1fb37718 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 16 Aug 2020 05:42:30 -0400 Subject: [PATCH] python: update *_palette_size() --- python/src/notcurses/build_notcurses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index 86d4f06cf..f61851718 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -79,7 +79,7 @@ struct ncplane* ncplane_bound_named(struct ncplane* n, int rows, int cols, int y struct ncplane* ncplane_aligned(struct ncplane* n, int rows, int cols, int yoff, ncalign_e align, void* opaque); struct ncplane* ncplane_aligned_named(struct ncplane* n, int rows, int cols, int yoff, ncalign_e align, void* opaque, const char* name); unsigned notcurses_supported_styles(const struct notcurses* nc); -int notcurses_palette_size(const struct notcurses* nc); +unsigned notcurses_palette_size(const struct notcurses* nc); bool notcurses_cantruecolor(const struct notcurses* nc); bool notcurses_canfade(const struct notcurses* nc); bool notcurses_canchangecolor(const struct notcurses* nc); @@ -456,7 +456,7 @@ int ncplane_qrcode(struct ncplane* n, ncblitter_e blitter, int* ymax, int* xmax, struct ncdirect* ncdirect_init(const char* termtype, FILE* fp); int ncdirect_bg_rgb(struct ncdirect* n, unsigned r, unsigned g, unsigned b); int ncdirect_fg_rgb(struct ncdirect* n, unsigned r, unsigned g, unsigned b); -int ncdirect_palette_size(const struct ncdirect* nc); +unsigned ncdirect_palette_size(const struct ncdirect* nc); int ncdirect_putstr(struct ncdirect* nc, uint64_t channels, const char* utf8); int ncdirect_fg(struct ncdirect* n, unsigned rgb); int ncdirect_bg(struct ncdirect* n, unsigned rgb);